SAGA-GIS Tool Library Documentation (v9.1.2)

Tool Binary Erosion-Reconstruction

Common binary opening does not guarantee, that foreground regions which outlast the erosion step are reconstructed to their original shape in the dilation step. Depending on the application, that might be considered as a deficiency. Therefore this tool provides a combination of erosion with the binary Geodesic Morphological Reconstruction, see Vincent (1993). Here we use the algorithm on p. 194: Breadth-first Scanning.

The marker is defined as the eroded input grid, whereas the mask is just the input grid itself. The output grid is the reconstruction of the marker under the mask.


References


Parameters

 NameTypeIdentifierDescriptionConstraints
InputInput GridGrid, inputINPUT_GRIDGrid to be filtered-
OutputOutput GridGrid, outputOUTPUT_GRIDReconstruction result-
OptionsGrid SystemGrid systemPARAMETERS_GRID_SYSTEM--
Filter Size (Radius)IntegerRADIUSFilter size (radius in grid cells)Default: 3

Command-line

Usage: saga_cmd grid_filter 13 [-INPUT_GRID <str>] [-OUTPUT_GRID <str>] [-RADIUS <num>]
  -INPUT_GRID:<str> 	Input Grid
	Grid, input
  -OUTPUT_GRID:<str>	Output Grid
	Grid, output
  -RADIUS:<num>     	Filter Size (Radius)
	Integer
	Default: 3