Morphological Filter
- Author: O.Conrad (c) 2010
- Menu: Grid | Filter
Description
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.
Parameters
Name | Type | Identifier | Description | Constraints | |
---|---|---|---|---|---|
Input | Grid | grid, input | INPUT | - | - |
Output | Filtered Grid | grid, output, optional | 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 kernel's shape. | Available Choices: [0] Square [1] Circle Default: 1 | |
Radius | integer number | KERNEL_RADIUS | cells | Minimum: 0 Default: 2 |
Command Line
Usage: saga_cmd grid_filter 8 [-INPUT] [-RESULT ] [-METHOD ] [-KERNEL_TYPE ] [-KERNEL_RADIUS ] -INPUT: Grid grid, input -RESULT: Filtered Grid grid, output, optional -METHOD: Method choice Available Choices: [0] Dilation [1] Erosion [2] Opening [3] Closing Default: 0 -KERNEL_TYPE: Kernel Type choice Available Choices: [0] Square [1] Circle Default: 1 -KERNEL_RADIUS: Radius integer number Minimum: 0 Default: 2