Filters

User-defined pattern filters

With a pattern filter, you can detect areas where pixels have more or less the same value, outliers where the values of all neighbouring pixels are very different from the center pixel, and the directions in which differences between neighbouring pixel values are found. Whether or not 3x3 neighbouring pixels are considered to have more or less the same value, is determined by the threshold value that you have to specify.

There is no standard pattern filter stored on disk. A pattern filter always works in a 3x3 environment. In the Filter dialog box as well as on the command line, you can define the threshold value which has to be used by the pattern filter.

Using the Filter dialog box:

To use a pattern filter:

Using the command line (advanced):

To define a pattern filter, type the following expression on the command line of the Main window:

 

OUTMAP

=

MapFilter(InputMapName, Pattern(threshold))

where:

OUTMAP

is the name of your output map.

MapFilter

is the command to start the Filter operation.

InputMapName

is the name of your input map.

Pattern

is the command to define a pattern filter.

threshold

specify a value for the threshold which determines whether the absolute differences between the central pixel and its neighbours are considered large (outlier or direction of edge) or small (area).

See also: