Posted by
Straub, Volko A. (Dr.) on
Apr 30, 2016; 4:08am
URL: http://imagej.273.s1.nabble.com/Segmenting-Circular-Objects-that-are-touching-multiple-other-objects-tp5016288p5016289.html
Have you tried applying a watershed segmentation after your initial
thresholding to separate touching particles? I just tried it with your
image after thresholding the image with the default settings and it
appeared to do a good job.
You can then use 'Analyse Particle' to add all your particles to the ROI
manager and measure them. If you select 'Fit ellipse' in the measure
option you will also get the length of the two main axes of the
particle, while 'Centroid' or 'Centre of mass' provide the coordinates
of the centre of each particle. Based on the measurements, it would be
easy to draw a smooth circle/ellipse for each particle if that is needed
(I didn't include this in the macro code below that illustrate what I did).
Hope this helps,
Volko
run("Duplicate...", " ");
run("8-bit");
setAutoThreshold("Default");
setOption("BlackBackground", true);
run("Convert to Mask");
run("Watershed");
run("Set Measurements...", "centroid center fit shape redirect=None
decimal=3");
run("Analyze Particles...", "display exclude clear add");
On 29/04/2016 22:21, smithd10 wrote:
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html