While trying to run the good old Analyze Particles command on some data, we get a strange behavior of we run:
- Exclude on Edges.
- With an ROI on the image that has multiple holes.
The result seems to exclude particles around an nonexistent edge that links the two holes together
To replicate the effect (on Fiji with ImageJ 1.52n) you can download the following image
Raw Adipocytes analyse bug edges.tif (696.7 KB)
And apply the following macro
setAutoThreshold("Huang dark"); setAutoThreshold("Default dark"); run("Analyze Particles...", " show=Masks exclude");
This is the original image, note that the ROI is the entire image MINUS the two circles
The result is
Which is for some reason excluding particles in a line connecting the two holes.
Any help figuring this out is appreciated.