I seem to have run into an issue with Analyze Particles and the ROI Manager.
The macro below creates a set of ROIs and adds them to the ROI Manager. Subsequently, it activates one of the ROIs from the Manager on another image (that’s also created by the macro) and runs Analyze Particles. I would expect to get the same error that you get when selecting the first ROI from the Manager on the second mask and try to run Analyze Particles: “no particles detected” (which is perfectly right).
Instead, however, I get a Results Table with all the ROIs from the manager?
roiManager("reset") /* Open sample image */ run("Dot Blot (7K)"); input = getImageID(); /* Create first binary mask from input (mask0) */ run("Duplicate...", " "); setAutoThreshold("Default"); run("Convert to Mask"); mask0 = getImageID(); /* Create second binary mask from input (mask1) */ selectImage(input); run("Duplicate...", " "); setThreshold(0, 85); run("Convert to Mask"); mask1 = getImageID(); /* Run Analyze Particles on first mask (only add to Roi Manager) */ selectImage(mask0); run("Analyze Particles...", "add"); /* Run Analyze Particles on second mask for one ROI from mask0 */ selectImage(mask1); // Select mask1 roiManager("select", 0); // Set ROI (extracted from mask0) run("Analyze Particles...", "display");
Am I missing an obvious point here? Can someone replicate the issue on his/her machine?
PS: I have tried with the latest nightly build of ImageJ1 (1.51m) as well as 1.51k within Fiji on Ubuntu 16.04.