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. 
- Author: O.Conrad (c) 2015
- Menu: Imagery|Classification
Parameters
|  | Name | Type | Identifier | Description | Constraints | 
|---|
| Input | Classification | grid, input | GRID | - | - | 
 | Look-up Table (*) | table, input, optional | GRID_LUT | - | - | 
 | Polygons | shapes, input | POLYGONS | - | - | 
| Output | Confusion Matrix | table, output | CONFUSION | - | - | 
 | Class Values | table, output | CLASSES | - | - | 
 | Summary | table, output | SUMMARY | - | - | 
| Options | Grid System | grid system | PARAMETERS_GRID_SYSTEM | - | - | 
 | Value Interpretation | choice | GRID_VALUES | - | Available Choices: [0] values are class identifiers
 [1] use look-up table
 Default: 1
 | 
 | Value | table field | GRID_LUT_MIN | - | - | 
 | Value (Maximum) (*) | table field | GRID_LUT_MAX | - | - | 
 | Name (*) | table field | GRID_LUT_NAM | - | - | 
 | Classes | table field | FIELD | - | - | 
 | Unclassified | boolean | NO_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