Skip to content

getShapePixels should not clip bounds by default #20

@Suhayb-A

Description

@Suhayb-A

Shapes that are out of the image bounds should be filled with np.nan instead of clipping to the bounds of the image. I am opening a case since this might not be necessary if it is handled at a higher level (see #19).

This also relates to computing background ROI offsets. Optimally, the grid should remove all invalid offsets before calling getShapePixels, alternatively one can call getShapePixels and then drop nan values if getShapePixels returns np.nan where an image is out of bounds.

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