SAGA-GIS Module Library Documentation (v2.3.0)

Module Confusion Matrix (Two Grids)

Compares two classified grids and creates a confusion matrix and derived coefficients as well as the combinations of both classifications as new grid. Grid classes have to be defined with a look-up table and values of both grids must match each other for the subsequent comparison. A typical application is a change detection analysis based on land cover classification of satellite imagery.

Parameters

 NameTypeIdentifierDescriptionConstraints
InputClassification 1Grid (input)ONE--
Look-up Table (*)Table (optional input)ONE_LUT--
Classification 2Grid (input)TWO--
Look-up Table (*)Table (optional input)TWO_LUT--
OutputCombined ClassesGrid (output)COMBINED--
Confusion MatrixTable (output)CONFUSION--
Class ValuesTable (output)CLASSES--
SummaryTable (output)SUMMARY--
OptionsGrid systemGrid systemPARAMETERS_GRID_SYSTEMGrid system-
ValueTable fieldONE_LUT_MIN--
Value (Maximum) (*)Table fieldONE_LUT_MAX--
Name (*)Table fieldONE_LUT_NAM--
ValueTable fieldTWO_LUT_MIN--
Value (Maximum) (*)Table fieldTWO_LUT_MAX--
Name (*)Table fieldTWO_LUT_NAM--
Report Unchanged ClassesBooleanNOCHANGE-Default: 1
Output as...ChoiceOUTPUT-Available Choices:
[0] cells
[1] percent
[2] area
Default: 0
(*) optional

Command-line

Usage: saga_cmd imagery_classification 2 [-ONE <str>] [-ONE_LUT <str>] [-ONE_LUT_MIN <str>] [-ONE_LUT_MAX <str>] [-ONE_LUT_NAM <str>] [-TWO <str>] [-TWO_LUT <str>] [-TWO_LUT_MIN <str>] [-TWO_LUT_MAX <str>] [-TWO_LUT_NAM <str>] [-COMBINED <str>] [-NOCHANGE <str>] [-CONFUSION <str>] [-OUTPUT <str>] [-CLASSES <str>] [-SUMMARY <str>]
  -ONE:<str>        	Classification 1
	Grid (input)
  -ONE_LUT:<str>    	Look-up Table
	Table (optional input)
  -ONE_LUT_MIN:<str>	Value
	Table field
  -ONE_LUT_MAX:<str>	Value (Maximum)
	Table field
  -ONE_LUT_NAM:<str>	Name
	Table field
  -TWO:<str>        	Classification 2
	Grid (input)
  -TWO_LUT:<str>    	Look-up Table
	Table (optional input)
  -TWO_LUT_MIN:<str>	Value
	Table field
  -TWO_LUT_MAX:<str>	Value (Maximum)
	Table field
  -TWO_LUT_NAM:<str>	Name
	Table field
  -COMBINED:<str>   	Combined Classes
	Grid (output)
  -NOCHANGE:<str>   	Report Unchanged Classes
	Boolean
	Default: 1
  -CONFUSION:<str>  	Confusion Matrix
	Table (output)
  -OUTPUT:<str>     	Output as...
	Choice
	Available Choices:
	[0] cells
	[1] percent
	[2] area
	Default: 0
  -CLASSES:<str>    	Class Values
	Table (output)
  -SUMMARY:<str>    	Summary
	Table (output)