stitching icon indicating copy to clipboard operation
stitching copied to clipboard

Cropper.prepare raises an exception when one rectangle does not overlap the ROI

Open carlosandujar opened this issue 2 years ago • 2 comments

Depending on the input, some images might not overlap the largest internal rectangle (see example).

Cropper.prepare raises an exception, but it would be more desirable to just ignore non-overlapping rectangles, or return their indices so that they can be removed as when subsetting to the largest component of the graph.

sample_mask

carlosandujar avatar Dec 06 '22 15:12 carlosandujar