Filters

User-defined average filters

The standard average filter is AVG3x3; it calculates the average value of 9 pixel values considered. In the Filter dialog box as well as on the command line, you may define other average filters of any user-defined size.

Using the Filter dialog box:

  1. To use the standard Average filter AVG3x3:
  2.  

  3. To define your own average filter:

See also the example below.

Using the command line (advanced):

  1. To use the standard Average filter AVG3x3, type on the command line of the Main window:
  2.  

    OUTMAP

    =

    MapFilter(InputMapName,Avg3x3)

     

    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.

    Avg3x3

    is the name of the standard average filter.

     

  3. To define your own Average filter, type the following expression on the command line of the Main window:
  4.  

    OUTMAP

    =

    MapFilter(InputMapName,Average(rows , cols))

     

    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.

    Average

    is the command to define an average filter.

    rows

    are the number of rows of your average filter.

    cols

    are the number of columns of your average filter.

Example:

To use an average filter which considers each 5 vertically neighbouring pixels:

Tip:

See also: