Re: Finding the regions automatically

Posted by Jeremy Adler-2 on
URL: http://imagej.273.s1.nabble.com/Finding-the-regions-automatically-tp5020109p5020118.html

Anu
Try this simple macro that works on the current image
Or do the sequence by hand


1) make binary, the original is not a binary image
2) join broken connections     Process/Binary/Options/closing      you may want to change the number of iterations    
3) threshold again and then use analyze particles to measure the area and place this in the results window. Analyze/set measurements decides what to measure


setAutoThreshold("Default dark");
setOption("BlackBackground", true);
run("Convert to Mask");
// join broken connections
run("Options...", "iterations=4 count=1 black do=Close");
setAutoThreshold("Default");

run("Set Measurements...", "area area_fraction redirect=None decimal=4");
run("Analyze Particles...", "display exclude clear summarize add");
run("Analyze Particles...", "exclude summarize add");

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of anusuya pal
Sent: den 15 februari 2018 23:34
To: [hidden email]
Subject: Finding the regions automatically

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