NAME
r.confusionmatrix - Calculates a confusion matrix and accuracies for a given classification using r.kappa.
KEYWORDS
raster,
statistics,
accuracy,
classification
SYNOPSIS
r.confusionmatrix
r.confusionmatrix --help
r.confusionmatrix [-dm] [classification=name] [raster_reference=name] [vector_reference=name] [column=name] [label_column=name] [csvfile=name] [--overwrite] [--help] [--verbose] [--quiet] [--ui]
Flags:
- -d
- Description of the accuracies
- -m
- Print output as a matrix
- --overwrite
- Allow output files to overwrite existing files
- --help
- Print usage summary
- --verbose
- Verbose module output
- --quiet
- Quiet module output
- --ui
- Force launching GUI dialog
Parameters:
- classification=name
- Name of raster map containing classification result
- raster_reference=name
- Name of raster map containing reference classes
- vector_reference=name
- Name of input vector map
- Name of vector map containing reference classes
- column=name
- Name of column in the vector map containing reference classes
- label_column=name
- Name of column used as raster category labels
- csvfile=name
- Name for output csv file containing confusion matrix and accuracies
- If not given write to standard output
r.confusionmatrix calculates the confusion matrix, overall, user and
producer accuracies, the omission and commission errors and the Kappa coefficient
of classification result using
r.kappa.
The reference can be a raster map
raster_reference or a vector map
vector_reference with a
column containing the class labels as
integer numbers.
In case of vector reference, this map is rasterized according to the extent and
resolution of the classification raster map.
Compute the confusion matrix as a CSV file including description of the accuracies:
r.confusionmatrix classification=classified raster_reference=trainingmap csvfile=test.csv -d
r.kappa
Anika Weinmann,
mundialis GmbH & Co. KG
SOURCE CODE
Available at:
r.confusionmatrix source code
(history)
Latest change: Tuesday Jan 31 13:56:00 2023 in commit: 047ac4427577e6e4710b1f35f596dd2d87089694
Main index |
Raster index |
Topics index |
Keywords index |
Graphical index |
Full index
© 2003-2024
GRASS Development Team,
GRASS GIS 8.4.1dev Reference Manual