I have one challenge for all advanced ImageJ users and developers. In my macro (see macro below) I would like to insert the following task:
I am analyzing particles in ROI and those particles/objects that are touching the edge of the picture, I would like to mark with “*” in a special column in the result table. Probable if sentence will do the task but I am a pure beginner of macros and really need some tips.
(I am aware of the option “exclude on edges” but I need areas of those objects to calculate the sum of all areas on the image; but I need to exclude them to calculate average area)
id = getImageID();
for (i=0 ; i<roiManager("count"); i++) {
selectImage(id);
roiManager("select", i);
run("Analyze Particles...", "size=0.008-Infinity circularity=0.00-1.00 show=Outlines clear");
}
Your help is appreciated, Jernej