Posted by
Herbie on
URL: http://imagej.273.s1.nabble.com/Finding-the-regions-automatically-tp5020109p5020110.html
Good day Anu,
here is an ImageJ-macro that does what you want for the provided sample
image:
//// macro start
run("Set Measurements...", "area redirect=None decimal=9");
setOption("BlackBackground", false);
run("Make Binary");
run("Dilate");
doWand(0, 1140);
run("Make Inverse");
run("Set...", "value=255");
run("Select None");
run("Invert LUT");
run("Analyze Particles...", " show=Nothing display clear include add");
run("Measure");
exit();
//// macro end
Paste the above macro code to an empty macro window (Plugins >> New >>
Macro) and run it.
The results table lists 203 areas with size in pixels^2.
HTH
Herbie
:::::::::::::::::::::::::::::::::::::::::
Am 15.02.18 um 23:33 schrieb anusuya pal:
> Hello,
>
> Greetings of the day!
>
> I have a binary image, and want to find the area of each of the domains. I
> can do that with nearest neighbor tool by selecting each domain and to add
> in roiManager, and then to measure the area of each domain.
>
> I want to know is there any other way so that the selection of the domains
> can be done automatically?
>
> For convenience, attaching the binary image (a_75) and the output image
> obtained from nearest neighbor tool showing one domain in red color. Your
> help will be appreciated!
>
> Thanks in advance!
> Anu
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html