Filters

Standard filters

Linear convolution filters:

AVG3x3

calculates the average value of each 9 pixel values considered (3x3 matrix)

EDGESENH

calculates Pixel value - Laplace; enhances edges (3x3 matrix)

LAPLACE

calculates second derivative in all directions (3x3 matrix)

SHADOW

applies artificial illumination from the Northwest (3x3 matrix)

DFDX

calculates first derivative in x-direction (1x5 matrix)

DFDY

calculates first derivative in y-direction (5x1 matrix)

DFDDN

calculates first derivative along downward diagonal (5x5 matrix)

DFDUP

calculates first derivative along upward diagonal (5x5 matrix)

D2FDX2

calculates second derivative in x-direction (5x5 matrix)

D2FDY2

calculates second derivative in y-direction (5x5 matrix)

D2FDXDY

calculates second derivative in all diagonal directions (5x5 matrix)

Rank order filters:

MED3x3

replaces the value of the center pixel by the median value of each 9 pixel values considered (3x3 matrix)

MED5x5

replaces the value of the center pixel by the median value of each 9 pixel values considered (5x5 matrix)

Majority filters:

MAJORITY

The majority filter selects the predominant (most frequently occurring) value or class name of a pixel and its 8 neighbours. (3x3 matrix)

MAJUNDEF

The undef-majority filter only assigns the predominant value or class name when the central pixel is undefined. (3x3 matrix)

MAJZERO

The zero-majority filter only assigns the predominant value or class name when the central pixel has value 0. (3x3 matrix)

Binary filters:

BINMAJOR

replaces the central pixel with the predominant value (0 or 1) of the 9 pixels considered (3x3 matrix)

CONN8TO4

makes 8-connected true pixels 4-connected (3x3 matrix)

DILATE4

dilation of 4-connected true pixels (3x3 matrix)

DILATE8

dilation of 8-connected true pixels (3x3 matrix)

SHRINK4

shrinking of 4-connected true pixels (3x3 matrix)

SHRINK8

shrinking of 8-connected true pixels (3x3 matrix)

INBND4

gives the inner boundary of areas of 4-connected true pixels (3x3 matrix)

INBND8

gives the inner boundary of areas of 8-connected true pixels (3x3 matrix)

OUTBND4

gives the outer boundary of areas of 4-connected true pixels (3x3 matrix)

OUTBND8

gives the outer boundary of areas of 8-connected true pixels (3x3 matrix)

PEPPSALT

only removes single true pixels and single false pixels (3x3 matrix)

LIFEGAME

game: small groups of true pixels die of loneliness, large groups of true pixels die of overcrowding, and when there is space (false pixels), true pixels reproduce and make one of their false neighbours true (3x3 matrix).

Standard filters are stored in your ILWIS\SYSTEM directory and have extension .FIL. They are stored in ASCII format, so you can have a look at them with any text editor, for example Notepad.

Besides the standard filters mentioned above, you can create and store your own linear filters and you may define your own average filters, rank order filters, median filters, majority filters, pattern filters, standard deviation filters or linear filters. For more information, refer to Filters : user-defined filters.

See also: