Tool 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.
- Author: O.Conrad (c) 2010
- Menu: Imagery|Classification
Parameters
| Name | Type | Identifier | Description | Constraints |
Input | Classification 1 | Grid, input | ONE | - | - |
Look-up Table (*) | Table, input, optional | ONE_LUT | - | - |
Classification 2 | Grid, input | TWO | - | - |
Look-up Table (*) | Table, input, optional | TWO_LUT | - | - |
Output | Combined Classes | Grid, output | COMBINED | - | - |
Confusion Matrix | Table, output | CONFUSION | - | - |
Class Values | Table, output | CLASSES | - | - |
Summary | Table, output | SUMMARY | - | - |
Options | Grid System | Grid system | PARAMETERS_GRID_SYSTEM | - | - |
Value | Table field | ONE_LUT_MIN | - | - |
Value (Maximum) (*) | Table field | ONE_LUT_MAX | - | - |
Name (*) | Table field | ONE_LUT_NAM | - | - |
Value | Table field | TWO_LUT_MIN | - | - |
Value (Maximum) (*) | Table field | TWO_LUT_MAX | - | - |
Name (*) | Table field | TWO_LUT_NAM | - | - |
Report Unchanged Classes | Boolean | NOCHANGE | - | Default: 1 |
Include Unclassified Cells | Boolean | NODATA | - | Default: 1 |
Output as... | Choice | OUTPUT | - | 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>] [-NODATA <str>] [-CONFUSION <str>] [-OUTPUT <str>] [-CLASSES <str>] [-SUMMARY <str>]
-ONE:<str> Classification 1
Grid, input
-ONE_LUT:<str> Look-up Table
Table, input, optional
-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, input, optional
-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
-NODATA:<str> Include Unclassified Cells
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