SAGA-GIS Tool Library Documentation (v9.2.0)

Tool Supervised Classification (Shapes)

Standard classifiers for supervised classification based on attributes.

Classifiers can be trained in three different ways:

Parameters

 NameTypeIdentifierDescriptionConstraints
InputShapesshapes, inputSHAPES--
Training Samplestable, inputTRAIN_SAMPLESProvide a class identifier in the first field followed by sample data corresponding to the selected feature attributes.-
OutputClassification (*)shapes, output, optionalCLASSES--
OptionsFeaturestable fieldsFEATURES--
NormalisebooleanNORMALISE-Default: 0
TrainingchoiceTRAIN_WITH-Available Choices:
[0] known classes field
[1] training samples
[2] load statistics from file
Default: 0
Known Classes Fieldtable fieldTRAIN_FIELD--
Load Statistics from File...file pathFILE_LOAD--
Save Statistics to File...file pathFILE_SAVE--
MethodchoiceMETHOD-Available Choices:
[0] Binary Encoding
[1] Parallelepiped
[2] Minimum Distance
[3] Mahalanobis Distance
[4] Maximum Likelihood
[5] Spectral Angle Mapping
[6] Winner Takes All
Default: 2
Distance Thresholdfloating point numberTHRESHOLD_DISTLet pixel stay unclassified, if minimum euclidian or mahalanobis distance is greater than threshold.Minimum: 0.000000
Default: 0.000000
Spectral Angle Threshold (Degree)floating point numberTHRESHOLD_ANGLELet pixel stay unclassified, if spectral angle distance is greater than threshold.Minimum: 0.000000
Maximum: 90.000000
Default: 0.000000
Probability Thresholdfloating point numberTHRESHOLD_PROBLet pixel stay unclassified, if maximum likelihood probability value is less than threshold.Minimum: 0.000000
Maximum: 100.000000
Default: 0.000000
Probability ReferencechoiceRELATIVE_PROB-Available Choices:
[0] absolute
[1] relative
Default: 1
Binary EncodingbooleanWTA_0-Default: 0
ParallelepipedbooleanWTA_1-Default: 0
Minimum DistancebooleanWTA_2-Default: 0
Mahalanobis DistancebooleanWTA_3-Default: 0
Maximum LikelihoodbooleanWTA_4-Default: 0
Spectral Angle MappingbooleanWTA_5-Default: 0
(*) optional

Command-line

Usage: saga_cmd table_tools 27 [-SHAPES <str>] [-CLASSES <str>] [-FEATURES <str>] [-NORMALISE <str>] [-TRAIN_WITH <str>] [-TRAIN_FIELD <str>] [-TRAIN_SAMPLES <str>] [-FILE_LOAD <str>] [-FILE_SAVE <str>] [-METHOD <str>] [-THRESHOLD_DIST <double>] [-THRESHOLD_ANGLE <double>] [-THRESHOLD_PROB <double>] [-RELATIVE_PROB <str>] [-WTA_0 <str>] [-WTA_1 <str>] [-WTA_2 <str>] [-WTA_3 <str>] [-WTA_4 <str>] [-WTA_5 <str>]
  -SHAPES:<str>            	Shapes
	shapes, input
  -CLASSES:<str>           	Classification
	shapes, output, optional
  -FEATURES:<str>          	Features
	table fields
  -NORMALISE:<str>         	Normalise
	boolean
	Default: 0
  -TRAIN_WITH:<str>        	Training
	choice
	Available Choices:
	[0] known classes field
	[1] training samples
	[2] load statistics from file
	Default: 0
  -TRAIN_FIELD:<str>       	Known Classes Field
	table field
  -TRAIN_SAMPLES:<str>     	Training Samples
	table, input
  -FILE_LOAD:<str>         	Load Statistics from File...
	file path
  -FILE_SAVE:<str>         	Save Statistics to File...
	file path
  -METHOD:<str>            	Method
	choice
	Available Choices:
	[0] Binary Encoding
	[1] Parallelepiped
	[2] Minimum Distance
	[3] Mahalanobis Distance
	[4] Maximum Likelihood
	[5] Spectral Angle Mapping
	[6] Winner Takes All
	Default: 2
  -THRESHOLD_DIST:<double> 	Distance Threshold
	floating point number
	Minimum: 0.000000
	Default: 0.000000
  -THRESHOLD_ANGLE:<double>	Spectral Angle Threshold (Degree)
	floating point number
	Minimum: 0.000000
	Maximum: 90.000000
	Default: 0.000000
  -THRESHOLD_PROB:<double> 	Probability Threshold
	floating point number
	Minimum: 0.000000
	Maximum: 100.000000
	Default: 0.000000
  -RELATIVE_PROB:<str>     	Probability Reference
	choice
	Available Choices:
	[0] absolute
	[1] relative
	Default: 1
  -WTA_0:<str>             	Binary Encoding
	boolean
	Default: 0
  -WTA_1:<str>             	Parallelepiped
	boolean
	Default: 0
  -WTA_2:<str>             	Minimum Distance
	boolean
	Default: 0
  -WTA_3:<str>             	Mahalanobis Distance
	boolean
	Default: 0
  -WTA_4:<str>             	Maximum Likelihood
	boolean
	Default: 0
  -WTA_5:<str>             	Spectral Angle Mapping
	boolean
	Default: 0