SHRINK8 filter

The SHRINK8 filter is a standard binary filter which works in a 3x3 environment.

The SHRINK8 filter assigns a 1 to a true center pixel only when all eight neighbours are true as well. When one or more neighbours is 0, a 0 is assigned. When the center pixel is 0, it always remains 0.

The result of using the SHRINK8 filter is that areas of true pixels 'shrink' along their edges; single lines of true pixels and single true pixels completely surrounded by false pixels disappear.

   

Input:

Output:

A calculation example is given in the SHRINK4 filter.

See also: