confusion_raster: Compute the confusion matrix between two raster files.

Description Usage Arguments Value Author(s)

View source: R/accuracy.R

Description

Compute the confusion matrix between two raster files.

Usage

1
confusion_raster(r1_path, r2_path, key_ls)

Arguments

r1_path

A length-one character. Path to a raster file. The reference raster to appear in the colums of the confusion matrices.

r2_path

A length-one character. Path to a raster file.

key_ls

A named list used to recode the integer values of r1_path and r2_path. The list is made of labels and its names are the numbers (as character) in the rasters.

Value

A list as explained in caret::confusionMatrix

Author(s)

Alber Sanchez, alber.ipia@inpe.br


albhasan/sits.prodes documentation built on Sept. 3, 2020, 2:03 p.m.