SAGA-GIS Tool Library Documentation (v6.1.0)

Tool Watershed Segmentation

Watershed segmentation.

Parameters

 NameTypeIdentifierDescriptionConstraints
InputGridGrid (input)GRID--
OutputSegmentsGrid (output)SEGMENTS--
Seed PointsShapes (output)SEEDS--
Borders (*)Data Object (optional output)BORDERS--
OptionsGrid systemGrid systemPARAMETERS_GRID_SYSTEM--
OutputChoiceOUTPUTThe values of the resultant grid can be either the seed value (e.g. the local maximum) or the enumerated segment id.Available Choices:
[0] Seed Value
[1] Segment ID
Default: 1
MethodChoiceDOWNChoose if you want to segmentate either on minima or on maxima.Available Choices:
[0] Minima
[1] Maxima
Default: 1
Join Segments based on Threshold ValueChoiceJOINJoin segments based on threshold value.Available Choices:
[0] do not join
[1] seed to saddle difference
[2] seeds difference
Default: 0
ThresholdFloating pointTHRESHOLDSpecify a threshold value as minimum difference between neighboured segments.Minimum: 0.000000
Default: 0.000000
Allow Edge Pixels to be SeedsBooleanEDGE-Default: 1
BordersBooleanBBORDERSCreate borders between segments as new grid.Default: 0
(*) optional

Command-line

Usage: saga_cmd imagery_segmentation 0 [-GRID <str>] [-SEGMENTS <str>] [-SEEDS <str>] [-BORDERS <str>] [-OUTPUT <str>] [-DOWN <str>] [-JOIN <str>] [-THRESHOLD <double>] [-EDGE <str>] [-BBORDERS <str>]
  -GRID:<str>        	Grid
	Grid (input)
  -SEGMENTS:<str>    	Segments
	Grid (output)
  -SEEDS:<str>       	Seed Points
	Shapes (output)
  -BORDERS:<str>     	Borders
	Data Object (optional output)
  -OUTPUT:<str>      	Output
	Choice
	Available Choices:
	[0] Seed Value
	[1] Segment ID
	Default: 1
  -DOWN:<str>        	Method
	Choice
	Available Choices:
	[0] Minima
	[1] Maxima
	Default: 1
  -JOIN:<str>        	Join Segments based on Threshold Value
	Choice
	Available Choices:
	[0] do not join
	[1] seed to saddle difference
	[2] seeds difference
	Default: 0
  -THRESHOLD:<double>	Threshold
	Floating point
	Minimum: 0.000000
	Default: 0.000000
  -EDGE:<str>        	Allow Edge Pixels to be Seeds
	Boolean
	Default: 1
  -BBORDERS:<str>    	Borders
	Boolean
	Default: 0