Re: Help Please
Posted by
Straub, Volko A. (Dr.) on
Aug 31, 2014; 5:54am
URL: http://imagej.273.s1.nabble.com/Help-Please-tp5009424p5009429.html
Hi William,
If you have a binary image (e.g. an image that you have previously
thresholded), use 'Create Selection' from the Edit->Selection menu
(macro command: run("Create Selection");) to select all pixels with a
value of 255. Follow this by 'Make Inverse' from the Edit->Selection
menu (macro command: run("Make Inverse");) to select all pixels with a
value of 0. Then simply use the Measure command to get the area of the
selection.
Hope this helps,
Volko
On 30/08/2014 22:44, Lee Berndt wrote:
> Greetings:
>
> I've written a macro to help determine the area of injury to turfgrass (putting greens)....the macro works great except for the very end....what I need to do is to get the number of pixels in an image corresponding to count 0 of 256 (black)....I can get the total number of pixels in the image but need the value for count 0 to create a percentage of black to all other pixels.....how do I get that value? Any help is greatly appreciated....thank you.
>
>
>
> William L. Berndt, Ph.D.
> 239.246.0396
>
>
>
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html