Note: This document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade, and read the current manual page.

GRASS logo

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

Table of contents

DESCRIPTION

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.

NOTES

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.

EXAMPLE

Compute the confusion matrix as CSV file including description of the accuracies:
r.confusionmatrix classification=classified raster_reference=trainingmap csvfile=test.csv -d

SEE ALSO

r.kappa

AUTHOR

Anika Bettge, mundialis GmbH & Co. KG

SOURCE CODE

Available at: r.confusionmatrix source code (history)

Latest change: Monday Jun 28 07:54:09 2021 in commit: 1cfc0af029a35a5d6c7dae5ca7204d0eb85dbc55


Main index | Raster index | Topics index | Keywords index | Graphical index | Full index

© 2003-2023 GRASS Development Team, GRASS GIS 7.8.9dev Reference Manual