SAGA 9.6.1 | Tool Library Documentation

Morphological 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

 NameTypeIdentifierDescriptionConstraints
InputGridgrid, inputINPUT--
OutputFiltered Gridgrid, output, optionalRESULT--
OptionsGrid Systemgrid systemPARAMETERS_GRID_SYSTEM--
MethodchoiceMETHODChoose the operation to perform.Available Choices: [0] Dilation [1] Erosion [2] Opening [3] Closing Default: 0
Kernel TypechoiceKERNEL_TYPEThe kernel's shape.Available Choices: [0] Square [1] Circle Default: 1
Radiusinteger numberKERNEL_RADIUScellsMinimum: 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