Login  Register

Re: a question about counting pixels in an image

Posted by Wayne Rasband on Sep 08, 2005; 9:03pm
URL: http://imagej.273.s1.nabble.com/a-question-about-counting-pixels-in-an-image-tp3704908p3704909.html

> My name is Aldo Ramos and my question is simple:
>
> How can I count the pixels in an image with a
> color or B&W scale criteria?

Use Analyze>Histogram or a simple macro like this:

       getRawStatistics(pixelCount);
       print("Pixel count: ", pixelCount);

-wayne