SAGA-GIS Tool Library Documentation (v8.1.0)

Tool Majority/Minority Filter

Majority filter for grids.

Parameters

 NameTypeIdentifierDescriptionConstraints
InputGridGrid, inputINPUT--
OutputFiltered Grid (*)Grid, output, optionalRESULT--
OptionsGrid SystemGrid systemPARAMETERS_GRID_SYSTEM--
TypeChoiceTYPE-Available Choices:
[0] Majority
[1] Minority
Default: 0
ThresholdFloating pointTHRESHOLDThe majority/minority threshold [percent].Minimum: 0.000000
Maximum: 100.000000
Default: 0.000000
Kernel TypeChoiceKERNEL_TYPEThe kernel's shape.Available Choices:
[0] Square
[1] Circle
Default: 1
RadiusIntegerKERNEL_RADIUScellsMinimum: 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