How do I measure the pixel count within a polygon?

119
1
2 weeks ago
ScarletMaguire
New Contributor II

I need to draw several polygons, using a raster layer as the reference, and measure the pixel count within each individual polygon based on the reference layer. Which tool is best to do this?

0 Kudos
1 Reply
EdMorris
Esri Contributor

Hi

What you could do is use the "Polygon to Raster geoproessing tool.

https://pro.arcgis.com/en/pro-app/3.1/tool-reference/conversion/polygon-to-raster.htm

When using the tool set the Cellsize to reflect the cellsize of your image whose pixels you wish to count. You might want to specify the Value field parameter to uniquely identify the resulting raster regions.

The resulting attribute table of the raster will have a COUNT field for each category. That's your number your looking for.

I hope this helps

ed