Posted by
gankaku on
Jan 08, 2015; 6:17pm
URL: http://imagej.273.s1.nabble.com/Analysing-water-in-oil-droplets-tp5011113p5011133.html
Hi Rikschuff, hi Michael,
the following macro gives a very similar result but should not have
problems with the background nor the different shading. One part is based
on the Difference of Gaussian and this should make the outlines of your
droplets here more pronounced. But this currently also just solves the
detection step and still not the tracking part.
//------------------------------------------
roiManager("reset");
setBatchMode(true);
setOption("BlackBackground");
original = getTitle();
run("8-bit");
run("Invert");
selectWindow(original);
run("Invert");
sig1 = 0.5;
sig2 = 3;
run("Duplicate...", "title=DoG");
DoG = getTitle();
run("Duplicate...", "title=intermediate");
intermediate = getTitle();
selectWindow(intermediate);
run("Gaussian Blur...", "sigma=sig1");
selectWindow(DoG);
run("Gaussian Blur...", "sigma=sig2");
imageCalculator("Subtract", "DoG", "intermediate");
selectWindow(DoG);
run("Enhance Contrast...", "saturated=1 normalize");
run("Auto Threshold", "method=Huang white");
run("Fill Holes");
run("Analyze Particles...", "size=500-Infinity circularity=0.80-1.00
show=Masks display exclude clear summarize add");
setBatchMode(false);
run("Invert LUT");
//------------------------------------------
Hope it helps.
cheers,
Jan
2015-01-08 10:53 GMT+01:00 rikschuff <
[hidden email]>:
--
CEO: Dr. rer. nat. Jan Brocher
phone: +49 (0)6234 917 03 39
mobile: +49 (0)176 705 746 81
e-mail:
[hidden email]
info:
[hidden email]
inquiries:
[hidden email]
web: www.biovoxxel.de
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html