Skip to content

cannot request rectangles consisting of one single point #231

Closed
@paulhfu

Description

@paulhfu

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):

  • OS: Ubuntu 18.04

ilastik ilastik/ilastik@29d6a33
lazyflow ilastik/lazyflow@8c2d40b
volumina 2b6551d

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions