-
Notifications
You must be signed in to change notification settings - Fork 66
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
cannot request rectangles consisting of one single point #231
Comments
Can you provide some examples for invalid clipping of rectangles? |
This is concerned with single valued rects that are multiples of the tilesize. So for example set the tilesize to 128 and call |
Included a fix here #229 |
Please check #233 I added some tests. |
cool! #233 fixes it. Exclusive end-points make sense. |
Describe the bug
In Volumina, patchAccessor.getPatchesForRect returns the right patches only if the respective rect intersects at least two tiles. If it is intersecting with one tile only, no patches are returned. Also sometimes getPatchesForRect is called with non-nomralized rects and rects of negative topleft corners. In that case the rect is clipped to the bounds of the scene. The clipping does not handle all possible variations of rectangles correctly.
Expected behavior
There should always be at least one patch-number returned if the respective rect is valid and has at least one point in the given scene.
To Reproduce
call patchAccessor.getPatchesForRect with a rect consisting of a single point. It returns an empty list.
Desktop (please complete the following information):
ilastik ilastik/ilastik@29d6a33
lazyflow ilastik/lazyflow@8c2d40b
volumina 2b6551d
The text was updated successfully, but these errors were encountered: