Skip to content

handles cases where the ROI goes outside of the image border (oval ROI) - #86

Merged
gletort merged 1 commit into
mainfrom
roi-outside
Aug 21, 2026
Merged

gletort merged 1 commit into
mainfrom
roi-outside

Conversation

@gletort

@gletort gletort commented Aug 21, 2026

Copy link
Copy Markdown
Member

If the ROI "leaks" outside the image (eg for an Oval ROI), it returned an error OutOfBounds exception, see issue #80

Fixed by testing the limits min (ROI leaking at the left or top), or max (leaking at the right or bottom) before to pass the cropped image to CP. Then again to translate correctly the results, necessary only in the leaking right or bottom scenarios.

@gletort
gletort requested a review from StRigaud August 21, 2026 09:24
@gletort
gletort merged commit 512d7b9 into main Aug 21, 2026
1 check passed
@gletort
gletort deleted the roi-outside branch August 21, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant