Count pixels located inside a polygon

Discussion created by guillem84 on Apr 26, 2011
Latest reply on May 6, 2011 by erice-esristaff
Dear colleagues,

I have superimposed a raster map, with different pixels values, and a shapefile (polygons). I would like to know if it is possible to find out how many pixel values of each class I have in each polygon.
I think I can accomplish it converting the raster map to a polygon map and applying an "intersect" but I would like to work directly with the raster map rather than convert it.
For instance, in the image I attach bellow, I would like to know how many green, orange, yellow and red pixels i have inside each polygon (black lines).

I would be really grateful if your could help me.

yours sincerely,