Skip to content

Fix cv::selectROI rectangle rendering issue#15098

Merged
opencv-pushbot merged 1 commit intoopencv:masterfrom
RealJohnSmith:master
Aug 1, 2019
Merged

Fix cv::selectROI rectangle rendering issue#15098
opencv-pushbot merged 1 commit intoopencv:masterfrom
RealJohnSmith:master

Conversation

@RealJohnSmith
Copy link
Copy Markdown
Contributor

This pull-request changes

Fix issue with cv::selectROI rectangle rendering.

Old (wrong) behavior: When dragging from any other corner than top-left, the ROI rectangle is not visible.
New (this PR, fixed) behavior: ROI Rectangle is visible when dragging from any corner. The rectangle doesn't get outside of image bounds.

Fixed and tested for both fromCenter = true and fromCenter = false

@mshabunin mshabunin self-assigned this Aug 1, 2019
@opencv-pushbot opencv-pushbot merged commit 95c65af into opencv:master Aug 1, 2019
@alalek alalek mentioned this pull request Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: highgui-gui port/backport done Label for maintainers. Authors of PR can ignore this

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants