/ All posts
- Count pixels in raster including nulls - M9
I'm wanting to count all the pixels within a raster that fall within my project area using M9.
My raster only shows vegetation so areas of buildings, roads and other infrastructure have been removed.
At the moment I can only get a count for pixels with non null values which are within the vegetated areas as well as outside them adjoining the edges of the image. I have a query that will only count those pixels within the project area polygon so that part is done.
Is there a way to count all pixels or, can I assign a vale to those null pixels so they get counted?
As always, all help is greatly appreciated!