[GIS] How to get a total amount of cells per classification type in a raster in ArcGIS 10.1

arcgis-10.1arcgis-desktopattribute-tableclassificationraster

I did an supervised classification for for this watershed. The attribute table doesn't have the count for total number of cell for each classification. I've created a field titled 'Count' with type 'Long', but I haven't figured out how to populate it. The photo is just to better illustrate what I'm trying to do.

-Using ArcGIS 10.1

-Supervised classification done on Landsat7 images that had multiple bands. I don't know why the table has a red, green, and blue column

Raster properties for the supervised classification imageAttribute table I'm working with

Best Answer

I can't explain why your original raster does not have a populated count field - I thought it appeared by default for integer rasters.

In any case, you can get those values by:

  1. Create a new integer raster, from your original, using Int. This will create a copy of the raster with Value and Count fields.
  2. Join the new raster back to the original raster based on the Value fields in each.
Related Question