SAGA-GIS Tool Library Documentation (v8.1.0)

Tool Superpixel Segmentation

The Superpixel Segmentation tool implements the 'Simple Linear Iterative Clustering' (SLIC) algorithm, an image segmentation method described in Achanta et al. (2010).

SLIC is a simple and efficient method to decompose an image in visually homogeneous regions. It is based on a spatially localized version of k-means clustering. Similar to mean shift or quick shift, each pixel is associated to a feature vector.

This tool is follows the SLIC implementation created by Vedaldi and Fulkerson as part of the VLFeat library.


References


Parameters

 NameTypeIdentifierDescriptionConstraints
InputFeaturesGrid list, inputFEATURES--
OutputSegmentsShapes, outputPOLYGONS--
Superpixels (*)Grid list, output, optionalSUPERPIXELS--
OptionsGrid SystemGrid systemPARAMETERS_GRID_SYSTEM--
NormalizeBooleanNORMALIZE-Default: 0
Maximum IterationsIntegerMAX_ITERATIONS-Minimum: 1
Default: 100
RegularizationFloating pointREGULARIZATION-Minimum: 0.000000
Default: 1.000000
Region SizeIntegerSIZEStarting 'cell size' of the superpixels given as number of cells.Minimum: 1
Default: 10
Minimum Region SizeIntegerSIZE_MINIn postprocessing join segments, which cover less cells than specified here, to a larger neighbour segment.Minimum: 1
Default: 1
Create Superpixel GridsBooleanSUPERPIXELS_DO-Default: 0
Post-ProcessingChoicePOSTPROCESSING-Available Choices:
[0] none
[1] unsupervised classification
Default: 0
Number of ClustersIntegerNCLUSTER-Minimum: 2
Default: 12
Split ClustersBooleanSPLIT_CLUSTERS-Default: 1
(*) optional

Command-line

Usage: saga_cmd imagery_segmentation 4 [-FEATURES <str>] [-NORMALIZE <str>] [-POLYGONS <str>] [-MAX_ITERATIONS <num>] [-REGULARIZATION <double>] [-SIZE <num>] [-SIZE_MIN <num>] [-SUPERPIXELS_DO <str>] [-SUPERPIXELS <str>] [-POSTPROCESSING <str>] [-NCLUSTER <num>] [-SPLIT_CLUSTERS <str>]
  -FEATURES:<str>         	Features
	Grid list, input
  -NORMALIZE:<str>        	Normalize
	Boolean
	Default: 0
  -POLYGONS:<str>         	Segments
	Shapes, output
  -MAX_ITERATIONS:<num>   	Maximum Iterations
	Integer
	Minimum: 1
	Default: 100
  -REGULARIZATION:<double>	Regularization
	Floating point
	Minimum: 0.000000
	Default: 1.000000
  -SIZE:<num>             	Region Size
	Integer
	Minimum: 1
	Default: 10
  -SIZE_MIN:<num>         	Minimum Region Size
	Integer
	Minimum: 1
	Default: 1
  -SUPERPIXELS_DO:<str>   	Create Superpixel Grids
	Boolean
	Default: 0
  -SUPERPIXELS:<str>      	Superpixels
	Grid list, output, optional
  -POSTPROCESSING:<str>   	Post-Processing
	Choice
	Available Choices:
	[0] none
	[1] unsupervised classification
	Default: 0
  -NCLUSTER:<num>         	Number of Clusters
	Integer
	Minimum: 2
	Default: 12
  -SPLIT_CLUSTERS:<str>   	Split Clusters
	Boolean
	Default: 1