-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fiji>Image>Overlay>List elements returns only the first 63 independent points of many more #67
Comments
Please provide a minimal and complete example that reproduces this problem. Something like the following JavaScript that lists 5000 points. n = 5000;
w = 1000, h = 700;
img = IJ.createImage("Demo","8-bit black",w,h,1);
ran = new Random();
overlay = new Overlay();
for (i=0; i<n; i++) {
x = ran.nextFloat()*w;
y = ran.nextFloat()*h;
overlay.add(new PointRoi(x,y));
}
img.setOverlay(overlay);
img.show();
IJ.run("List Elements", ""); |
I cannot reproduce this programmatically so I'll repost this issue in Alex's GSDC repository instead. Sorry @rasband |
For the record, the new issue is now here: aherbert/gdsc#5 |
I'm reporting here the results of my interaction with Alex Herbert on this issue. There is no bug either in ImageJ or FindFoci: FindFoci labels maxima by adding a PointRoi as an overlay for each slice of the image stack. Each of these PointRois may, in turn, contain one or more point maxima. I did not realize this when I examined the output table of the ListElements command, wrongly assuming that each line of the table consisted of just 1 point. This brings me to a feature enhancement suggestion: to add in the results table a column for the .npoints field of any PolygonRois present in the overlay. This would avoid any confusion such as the one in which I incurred. |
The latest ImageJ daily build (1.52h31) adds a "Points" column to the Image>Overlay>List Elements table. View the code changes at d320de6. |
The issue came up with an output file of Alex Herbert's FindFoci plugin, when using the option to label maxima as overlay points. In particular I have an image with 300 points, but the List elements command in Fiji returns only the first 63!
The text was updated successfully, but these errors were encountered: