Tool Majority/Minority Filter
Majority filter for grids.
- Author: O.Conrad (c) 2010
- Menu: Grid|Filter
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 | - | - |
Type | Choice | TYPE | - | Available Choices: [0] Majority [1] Minority Default: 0 |
Threshold | Floating point | THRESHOLD | The majority/minority threshold [percent]. | Minimum: 0.000000 Maximum: 100.000000 Default: 0.000000 |
Kernel Type | Choice | KERNEL_TYPE | The kernel's shape. | Available Choices: [0] Square [1] Circle Default: 1 |
Radius | Integer | KERNEL_RADIUS | cells | Minimum: 0 Default: 2 |
(*) optional |
Command-line
Usage: saga_cmd grid_filter 6 [-INPUT <str>] [-RESULT <str>] [-TYPE <str>] [-THRESHOLD <double>] [-KERNEL_TYPE <str>] [-KERNEL_RADIUS <num>]
-INPUT:<str> Grid
Grid, input
-RESULT:<str> Filtered Grid
Grid, output, optional
-TYPE:<str> Type
Choice
Available Choices:
[0] Majority
[1] Minority
Default: 0
-THRESHOLD:<double> Threshold
Floating point
Minimum: 0.000000
Maximum: 100.000000
Default: 0.000000
-KERNEL_TYPE:<str> Kernel Type
Choice
Available Choices:
[0] Square
[1] Circle
Default: 1
-KERNEL_RADIUS:<num> Radius
Integer
Minimum: 0
Default: 2