SAGA-GIS Tool Library Documentation (v9.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, inputGRID--
Look-up Table (*)table, input, optionalGRID_LUT--
Polygonsshapes, inputPOLYGONS--
OutputConfusion Matrixtable, outputCONFUSION--
Class Valuestable, outputCLASSES--
Summarytable, outputSUMMARY--
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, input, optional
  -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