How can I get a confusion matrix using specific columns in two different rasters in ArcGIS ? I have one raster of risk classes 1,2,3,4 and another raster of land cover A, B, C,D. I am looking for a matrix showing number of cell count for each land cover in each risk class.


1 Answer 1


I think the tool you want is not Compute Confusion Matrix as it is mainly used for accuracy assessment to compare the classified map with ground truth data. The following I quote from the help above:

Computes a confusion matrix based on errors of omission and commission, then derives a kappa index of agreement between the classified map and data that is considered to be ground truth.

This tool uses the outputs from the Create Accuracy Assessment Points tool or the Update Accuracy Assessment Points tool.

The tool you need is Tabulate Area. Tabulate area is used to calculate the area of zones within each another zone. So in your case you may use the land cover data as input data and the risk class as zone data. Then the tool will calculate the area of each land cover within each risk zone. Finally:

the number of cells/pixels (in each risk zone) = total area/cell size (pixel area)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.