Module Sieving Classes
Majority filter for grids.
- Author: O.Conrad (c) 2014
 
- Specification: grid
 
- Menu: Grid|Filter
 
Parameters
|   | Name | Type | Identifier | Description | Constraints | 
| Input | Classes | Grid (input) | INPUT | - | - | 
| Output | Sieved Classes (*) | Grid (optional output) | OUTPUT | - | - | 
| Options | Neighbourhood | Choice | MODE | Neumann: the four horizontally and vertically neighboured cells; Moore: all eight adjacent cells | Available Choices: [0] Neumann [1] Moore Default: 1 | 
 | Minimum Threshold | Integer | THRESHOLD | Minimum number of cells in a group of adjacent cells. | Minimum: 2 Default: 4 | 
 | Class Selection | Choice | ALL | - | Available Choices: [0] single class [1] all classes Default: 1 | 
 | Class Identifier | Floating point | CLASS | - | Default: 1.000000 | 
| (*) optional | 
Command-line
Usage: saga_cmd grid_filter 15 [-INPUT <str>] [-OUTPUT <str>] [-MODE <str>] [-THRESHOLD <num>] [-ALL <str>] [-CLASS <str>]
  -INPUT:<str>    	Classes
	Grid (input)
  -OUTPUT:<str>   	Sieved Classes
	Grid (optional output)
  -MODE:<str>     	Neighbourhood
	Choice
	Available Choices:
	[0] Neumann
	[1] Moore
	Default: 1
  -THRESHOLD:<num>	Minimum Threshold
	Integer
	Minimum: 2
	Default: 4
  -ALL:<str>      	Class Selection
	Choice
	Available Choices:
	[0] single class
	[1] all classes
	Default: 1
  -CLASS:<str>    	Class Identifier
	Floating point
	Default: 1.000000