SAGA-GIS Tool Library Documentation (v9.1.2)

Tool Watershed Segmentation (ViGrA)

Note that the watershed algorithm usually results in an oversegmentation (i.e., too many regions), but its boundary localization is quite good.
Based on the code example "watershed.cxx" by Ullrich Koethe.


References


Parameters

 NameTypeIdentifierDescriptionConstraints
InputInputGrid, inputINPUT--
OutputSegmentationGrid, outputOUTPUT--
OptionsGrid SystemGrid systemPARAMETERS_GRID_SYSTEM--
Width of gradient filterFloating pointSCALE-Minimum: 0.000000
Default: 1.000000
RGB coded dataBooleanRGB-Default: 0
EdgesBooleanEDGES-Default: 0

Command-line

Usage: saga_cmd imagery_vigra 4 [-INPUT <str>] [-OUTPUT <str>] [-SCALE <double>] [-RGB <str>] [-EDGES <str>]
  -INPUT:<str>   	Input
	Grid, input
  -OUTPUT:<str>  	Segmentation
	Grid, output
  -SCALE:<double>	Width of gradient filter
	Floating point
	Minimum: 0.000000
	Default: 1.000000
  -RGB:<str>     	RGB coded data
	Boolean
	Default: 0
  -EDGES:<str>   	Edges
	Boolean
	Default: 0