stitching
stitching copied to clipboard
Cropper.prepare raises an exception when one rectangle does not overlap the ROI
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.

Thanks for reporting the issue! I was not aware of that.
another use case with images which can be used to test:
StitchingError: Rectangles do not overlap!
https://github.com/OpenStitching/stitching/discussions/172#discussioncomment-7593776