SAGA-GIS Tool Library Documentation (v7.2.0)

Tool Confusion Matrix (Polygons / Grid)

Compares a classified polygons layer with grid classes and creates a confusion matrix and derived coefficients. Grid classes have to be defined with a look-up table and values must match those of the polygon classes for the subsequent comparison. This tool is typically used for a quality assessment of a supervised classification.

Parameters

 NameTypeIdentifierDescriptionConstraints
InputClassificationGrid (input)GRID--
Look-up Table (*)Table (optional input)GRID_LUT--
PolygonsShapes (input)POLYGONS--
OutputConfusion MatrixTable (output)CONFUSION--
Class ValuesTable (output)CLASSES--
SummaryTable (output)SUMMARY--
OptionsGrid systemGrid systemPARAMETERS_GRID_SYSTEM--
Value InterpretationChoiceGRID_VALUES-Available Choices:
[0] values are class identifiers
[1] use look-up table
Default: 1
ValueTable fieldGRID_LUT_MIN--
Value (Maximum) (*)Table fieldGRID_LUT_MAX--
Name (*)Table fieldGRID_LUT_NAM--
ClassesTable fieldFIELD--
UnclassifiedBooleanNO_CLASS-Default: 1
(*) optional

Command-line

Usage: saga_cmd imagery_classification 6 [-GRID <str>] [-GRID_VALUES <str>] [-GRID_LUT <str>] [-GRID_LUT_MIN <str>] [-GRID_LUT_MAX <str>] [-GRID_LUT_NAM <str>] [-POLYGONS <str>] [-FIELD <str>] [-CONFUSION <str>] [-CLASSES <str>] [-SUMMARY <str>] [-NO_CLASS <str>]
  -GRID:<str>        	Classification
	Grid (input)
  -GRID_VALUES:<str> 	Value Interpretation
	Choice
	Available Choices:
	[0] values are class identifiers
	[1] use look-up table
	Default: 1
  -GRID_LUT:<str>    	Look-up Table
	Table (optional input)
  -GRID_LUT_MIN:<str>	Value
	Table field
  -GRID_LUT_MAX:<str>	Value (Maximum)
	Table field
  -GRID_LUT_NAM:<str>	Name
	Table field
  -POLYGONS:<str>    	Polygons
	Shapes (input)
  -FIELD:<str>       	Classes
	Table field
  -CONFUSION:<str>   	Confusion Matrix
	Table (output)
  -CLASSES:<str>     	Class Values
	Table (output)
  -SUMMARY:<str>     	Summary
	Table (output)
  -NO_CLASS:<str>    	Unclassified
	Boolean
	Default: 1