Skip to content

Fix bug in initializers Rect2f(Point2f,Point2f) and Rect2d(Point2d,Point2d)#20761

Merged
opencv-pushbot merged 1 commit intoopencv:masterfrom
komakai:fix_rect2f
Sep 28, 2021
Merged

Fix bug in initializers Rect2f(Point2f,Point2f) and Rect2d(Point2d,Point2d)#20761
opencv-pushbot merged 1 commit intoopencv:masterfrom
komakai:fix_rect2f

Conversation

@komakai
Copy link
Copy Markdown
Contributor

@komakai komakai commented Sep 28, 2021

Pull Request Readiness Checklist

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or other license that is incompatible with OpenCV
  • The PR is proposed to proper branch
  • There is a test

Fix a bug in iOS/macOS implementation of Rect2f(Point2f, Point2f) and Rect2d(Point2d, Point2d) initializers causing loss of precision due to erroneous casts to int

@opencv-pushbot opencv-pushbot merged commit 280dc77 into opencv:master Sep 28, 2021
@alalek alalek mentioned this pull request Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants