SAGA-GIS Tool Library Documentation (v9.2.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 Iterationsinteger numberMAX_ITERATIONS-Minimum: 1
Default: 100
Regularizationfloating point numberREGULARIZATION-Minimum: 0.000000
Default: 1.000000
Region Sizeinteger numberSIZEStarting 'cell size' of the superpixels given as number of cells.Minimum: 1
Default: 10
Minimum Region Sizeinteger numberSIZE_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 Clustersinteger numberNCLUSTER-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 number
	Minimum: 1
	Default: 100
  -REGULARIZATION:<double>	Regularization
	floating point number
	Minimum: 0.000000
	Default: 1.000000
  -SIZE:<num>             	Region Size
	integer number
	Minimum: 1
	Default: 10
  -SIZE_MIN:<num>         	Minimum Region Size
	integer number
	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 number
	Minimum: 2
	Default: 12
  -SPLIT_CLUSTERS:<str>   	Split Clusters
	boolean
	Default: 1