Confusion Matrix (Polygons / Grid)
- Author: O.Conrad (c) 2015
- Menu: Imagery | Classification
Description
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
|  | 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 | 
Command Line
Usage: saga_cmd imagery_classification 6 [-GRID ] [-GRID_VALUES ] [-GRID_LUT ] [-GRID_LUT_MIN ] [-GRID_LUT_MAX ] [-GRID_LUT_NAM ] [-POLYGONS ] [-FIELD ] [-CONFUSION ] [-CLASSES ] [-SUMMARY ] [-NO_CLASS ]
  -GRID:        	Classification
	grid, input
  -GRID_VALUES: 	Value Interpretation
	choice
	Available Choices:
	[0] values are class identifiers
	[1] use look-up table
	Default: 1
  -GRID_LUT:    	Look-up Table
	table, input, optional
  -GRID_LUT_MIN:	Value
	table field
  -GRID_LUT_MAX:	Value (Maximum)
	table field
  -GRID_LUT_NAM:	Name
	table field
  -POLYGONS:    	Polygons
	shapes, input
  -FIELD:       	Classes
	table field
  -CONFUSION:   	Confusion Matrix
	table, output
  -CLASSES:     	Class Values
	table, output
  -SUMMARY:     	Summary
	table, output
  -NO_CLASS:    	Unclassified
	boolean
	Default: 1