Dear ImageJ and Fiji community,
I am currently trying to do a thresholding of different circular objects segmented using Hough circle transformation using a user set of loop, because the image has different colors and it will be used for large number of detection in the future.
myProcess2(5);
function myProcess2(Eggs){
Dialog.create("Test Run");
Dialog.addNumber("How many eggs ?",Eggnumber);
Dialog.show();
Eggnumber = Dialog.getNumber();
x="+Eggnumber+";
i = 1;
do {
run("Threshold...");
setAutoThreshold("Default dark");
setThreshold(i, i);
run("Analyze Particles...", "size=0-Infinity pixel add");
i = i + 1;
} while (i <= x)
}
Egg map.tif (994.3 KB)
(The image is bugged, but can be detected using ImageJ)
My problem is, the thresholding and particle analysis part did not loop as I intended.
I am currently using ImageJ 1.53c
Many thanks in advance for any tips that you can share.
Best Regards,
Kevin