This tool allows for the calculation of several neighbor pixels statistics for every band of a band set defined in the :ref:`band_set_tab`.
The statistics are calculated for every pixel of the input raster considering the values of the neighbor pixels. Neighbor pixels are defined through a distance or through a custom matrix.
For example, the following matrix represents the neighbor pixels within a distance of 1 pixel from a central pixel, resulting in a 3x3 matrix.
Neighbor | Neighbor | Neighbor |
Neighbor | Center | Neighbor |
Neighbor | Neighbor | Neighbor |
Several statistics are available.
The statistic Sum
will result in a raster convolution.
For instance, this can be useful to apply an image filter to all the bands of a
band set for photointerpretation.
Tip
Information about APIs of this tool in Remotior Sensus at this link .
Tool symbol and name | Description |
---|---|
:guilabel:`Select input band set` | select the input :ref:`band_set_tab` |
:guilabel:`Neighbor distance in pixels` | create a window defining the size based on the distance from the center (in number of pixels) |
:guilabel:`Circular` | if checked, the window will be circular |
:guilabel:`Matrix file (optional)` | select a .csv file containing the structure of the window |
:guilabel:`Output name` | set the name prefix for output files |
:guilabel:`Virtual output` | if checked, the output is created as virtual raster composed of as
many .tif files as the number of CPU threads defined in
:ref:`system_processing` |
Tool symbol and name | Description |
---|---|
:guilabel:`Select a statistic` | select a statistic among: Count, Max, Mean, Median, Min, Percentile, StandardDeviation, Sum. For Percentile statistic it is possible to enter the percentile value. |
- :guilabel:`Script`
- add this function to the :ref:`script_tab`
- :guilabel:`RUN`
- run this function