Presentation and options Dialog box of the application
Syntax

Presentation and options

This application takes a raster and substitutes the cells (pixels) which have a value equal to a previously selected value (value to substitute) with the value of the majority of the cells surrounding that cell (mode) or the average of the neighboring values. The neighborhood is defined by the convolution window, which is square and has an odd number of pixels. The file to be processed is a raster in any format (byte, short integer, unsigned integer o real), compressed or uncompressed. The result of the process will be another raster in the same format.

Conceptually, this process can have a number of uses:

The name of the application, FagoVal, is due to the similarity between the process carried out and the process of biological phagocytosis by which a larger cell (in this case the convolution matrix) eliminates other elements (in this case the selected values) by surrounding them and ingesting them into itself.

When the area of the values to be substituted is bigger than the convolution window, some interior values will remain after the first pass of the process and in this case the application asks the users if they wish to perform another iteration of the substitution process. In order to avoid interrupting the application and continue the iteration until there are no more values to process or until there are only isolated values, there is the optional parameter /ITERAR_AUTO.

It may also be the case that a value is not phagocytosed because the result of the substitution is itself according to the convolution calculation (for example, in a substitution by average or also in a case by median with tiebreaker by average of two central values).

To avoid final isolated values, that appear when a value to be processed is surrounded by NoData values, and to assign them the value NoData, there is the optional parameter /AILLAT_NODATA. Prudence is required when choosing the size of the convolution window; whilst a bigger window will reduce the number of iterations, it may also degrade the image by applying a substitute value from excessively distant cells.

When replacing the values to be processed by the mean or modal value of the convolution window, NoData values are never considered, which can result in the calculation being made on a very limited sample. In this case, if the number of valid pixels within the convolution window is inferior to half the number of cells in the window, it is possible to mark the pixel that is being processed with a NoData value if the /NODATA_MAJORITARI parameter is used. Alternatively, accept the calculation made with the available sample.


Dialog box of the application

FagoVal dialog box


Syntax

Syntax:

Parameters:

Modifiers: