I am working on forest change detection in an area. I have taken two satellite images 2001 and 2016 to depict the forest change. I have taken four classes while classifying the images i.e., forest, non-forest, snow and water bodies.
I want to know, how we can make contingency table of both the two satellite images. The contingency table must show the change of pixel like how many pixels of class forest were present in 2001 and how many of those pixels transferred in 2016 in another class.
table(raster::values(scene_2001),raster::values(scene_2016))
values()
. Checkhelp(values)