SAGA 9.6.1 | Tool Library Documentation

Confusion Matrix (Two Grids)


Description

The tool allows one to compare two classified grids. It creates a confusion matrix and derived coefficients as well as the combinations of both classifications as new grid. The values of both grids must match each other in order to do the comparison. The tool provides three options to define the grid classes: - by providing a look-up table for each grid - by coloring each grid with a look-up table (colors type = classified) beforehand (only available in the GUI) - by preparing the grid values appropriately; i.e., if no look-up table is provided, the tool simply extracts the classes from the grid values found in each grid A typical application is a change detection analysis based on land cover classification of satellite imagery.


Parameters

 NameTypeIdentifierDescriptionConstraints
InputClassification 1grid, inputONE--
Look-up Tabletable, input, optionalONE_LUT--
Classification 2grid, inputTWO--
Look-up Tabletable, input, optionalTWO_LUT--
OutputCombined Classesgrid, outputCOMBINED--
Confusion Matrixtable, outputCONFUSION--
Class Valuestable, outputCLASSES--
Summarytable, outputSUMMARY--
OptionsGrid Systemgrid systemPARAMETERS_GRID_SYSTEM--
Valuetable fieldONE_LUT_MIN--
Value (Maximum)table fieldONE_LUT_MAX--
Nametable fieldONE_LUT_NAM--
Valuetable fieldTWO_LUT_MIN--
Value (Maximum)table fieldTWO_LUT_MAX--
Nametable fieldTWO_LUT_NAM--
Report Unchanged ClassesbooleanNOCHANGE-Default: 1
Include Unclassified CellsbooleanNODATA-Default: 1
Output as...choiceOUTPUT-Available Choices: [0] cells [1] percent [2] area Default: 0

Command Line


Usage: saga_cmd imagery_classification 2 [-ONE ] [-ONE_LUT ] [-ONE_LUT_MIN ] [-ONE_LUT_MAX ] [-ONE_LUT_NAM ] [-TWO ] [-TWO_LUT ] [-TWO_LUT_MIN ] [-TWO_LUT_MAX ] [-TWO_LUT_NAM ] [-COMBINED ] [-NOCHANGE ] [-NODATA ] [-CONFUSION ] [-OUTPUT ] [-CLASSES ] [-SUMMARY ]
  -ONE:        	Classification 1
	grid, input
  -ONE_LUT:    	Look-up Table
	table, input, optional
  -ONE_LUT_MIN:	Value
	table field
  -ONE_LUT_MAX:	Value (Maximum)
	table field
  -ONE_LUT_NAM:	Name
	table field
  -TWO:        	Classification 2
	grid, input
  -TWO_LUT:    	Look-up Table
	table, input, optional
  -TWO_LUT_MIN:	Value
	table field
  -TWO_LUT_MAX:	Value (Maximum)
	table field
  -TWO_LUT_NAM:	Name
	table field
  -COMBINED:   	Combined Classes
	grid, output
  -NOCHANGE:   	Report Unchanged Classes
	boolean
	Default: 1
  -NODATA:     	Include Unclassified Cells
	boolean
	Default: 1
  -CONFUSION:  	Confusion Matrix
	table, output
  -OUTPUT:     	Output as...
	choice
	Available Choices:
	[0] cells
	[1] percent
	[2] area
	Default: 0
  -CLASSES:    	Class Values
	table, output
  -SUMMARY:    	Summary
	table, output