Posted by
gankaku on
Jul 07, 2015; 8:11am
URL: http://imagej.273.s1.nabble.com/Index-of-hexagonality-SOLVED-tp5013442p5013447.html
Hi Mr_Sonky,
The attatched Macro prepares the image you sent for the final analysis.
This, might need adjustment depending on how all your other images look
like.
To run the macro you need the "BioVoxxel Toolbox" (
http://www.biovoxxel.de/development/) since it depends on veveral of its
functions.
At the end you can then run the "Neighbor Analysis" macro from the very
same toolbox.
Attatched you also find an image which more or less shows you the procedure
and the outcome.
Hope it helps,
Jan
//-----macro start
original = getTitle();
run("8-bit");
run("Pseudo flat field correction", "blurring=40");
close(original + "_background");
selectWindow(original);
run("Median...", "radius=1");
run("Select None");
run("Duplicate...", "title=Background");
background = getTitle();
run("Median...", "radius=40");
imageCalculator("Subtract", original, background);
selectWindow(original);
run("Enhance Contrast...", "saturated=1 normalize");
run("Auto Threshold", "method=Li white");
run("EDM Binary Operations", "iterations=2 operation=close");
run("Analyze Particles...", "size=50-Infinity show=Masks in_situ");
run("Median...", "radius=5");
run("Invert");
run("Watershed");
run("Voronoi");
setOption("BlackBackground", true);
setThreshold(1, 255);
run("Convert to Mask");
resetThreshold();
run("Invert");
close(background);
selectWindow(original);
//-----macro end
2015-07-07 0:14 GMT+02:00 Mr_Sonky <
[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