Tool Morphological Filter
Morphological filter for grids. Dilation returns the maximum and erosion the minimum value found in a cell's neighbourhood as defined by the kernel. Opening applies first an erosion followed by a dilation and closing is a dilation followed by an erosion.
- Author: O.Conrad (c) 2010
- Menu: Grid|Filter
Parameters
| Name | Type | Identifier | Description | Constraints |
Input | Grid | Grid (input) | INPUT | - | - |
Output | Filtered Grid (*) | Grid (optional output) | RESULT | - | - |
Options | Grid system | Grid system | PARAMETERS_GRID_SYSTEM | - | - |
Method | Choice | METHOD | Choose the operation to perform. | Available Choices: [0] Dilation [1] Erosion [2] Opening [3] Closing Default: 0 |
Kernel Type | Choice | KERNEL_TYPE | The shape of the filter kernel. | Available Choices: [0] Square [1] Circle Default: 1 |
Kernel Radius | Integer | KERNEL_RADIUS | The kernel radius in cells. | Minimum: 0 Default: 2 |
(*) optional |
Command-line
Usage: saga_cmd grid_filter 8 [-INPUT <str>] [-RESULT <str>] [-METHOD <str>] [-KERNEL_TYPE <str>] [-KERNEL_RADIUS <num>]
-INPUT:<str> Grid
Grid (input)
-RESULT:<str> Filtered Grid
Grid (optional output)
-METHOD:<str> Method
Choice
Available Choices:
[0] Dilation
[1] Erosion
[2] Opening
[3] Closing
Default: 0
-KERNEL_TYPE:<str> Kernel Type
Choice
Available Choices:
[0] Square
[1] Circle
Default: 1
-KERNEL_RADIUS:<num> Kernel Radius
Integer
Minimum: 0
Default: 2