opencv/modules/imgproc
Pierre Chatelier ef6f421f89
Merge pull request #21677 from chacha21:rectangle_intersection
* better accuracy of _rotatedRectangleIntersection

instead of just migrating to double-precision (which would work), some computations are scaled by a factor that depends on the length of the smallest vectors.
There is a better accuracy even with floats, so this is certainly better for very sensitive cases

* Update intersection.cpp

use L2SQR norm to tune the numeric scale

* Update intersection.cpp

adapt samePointEps with L2 norm

* Update intersection.cpp

move comment

* Update intersection.cpp

fix wrong numericalScalingFactor usage

* added tests

* fixed warnings returned by buildbot

* modifications suggested by reviewer

renaming numericalScaleFctor to normalizationScale
refactor some computations
more "const"

* modifications as suggested by reviewer
2022-03-16 17:46:11 +03:00
..
doc Add conventional Bayer naming. 2021-11-02 20:17:57 +01:00
include/opencv2 Merge remote-tracking branch 'upstream/3.4' into merge-3.4 2022-02-11 17:32:37 +00:00
misc Merge pull request #19423 from LaurentBerger:houg_acc 2021-02-01 21:22:10 +00:00
perf Merge remote-tracking branch 'upstream/3.4' into merge-3.4 2021-04-08 11:23:24 +00:00
src Merge pull request #21677 from chacha21:rectangle_intersection 2022-03-16 17:46:11 +03:00
test Merge pull request #21677 from chacha21:rectangle_intersection 2022-03-16 17:46:11 +03:00
CMakeLists.txt Merge pull request #17165 from komakai:objc-binding 2020-06-08 18:32:53 +00:00