opencv/modules/imgproc
Tiago De Gaspari 3cf4375387
Merge pull request #19842 from gasparitiago:3.4
Update rotatedRectangleIntersection function to calculate near to origin

* Change type used in points function from RotatedRect

In the function that sets the points of a RotatedRect, the types

should be double in order to keep the precision when dealing with
RotatedRects that are defined far from the origin.

This commit solves the problem in some assertions from
rotatedRectangleIntersection when dealing with rectangles far from
origin.

* added proper type casts

* Update rotatedRectangleIntersection function to calculate near to origin

This commit changes the rotatedRectangleIntersection function in order
to calculate the intersection of two rectangles considering that they
are shifted near the coordinates origin (0, 0).

This commit solves the problem in some assertions from
rotatedRectangleIntersection when dealing with rectangles far from
origin.

* Revert type changes in types.cpp and adequate code to c++98

* Revert unnecessary casts on types.cpp

Co-authored-by: Vadim Pisarevsky <vadim.pisarevsky@gmail.com>
2021-06-12 23:28:54 +03:00
..
doc Merge pull request #19419 from Liangda-w:patch-1 2021-02-01 09:17:54 +00:00
include/opencv2 Merge pull request #20103 from thezane:make-div-spectrums-public 2021-05-19 12:14:11 +03:00
misc/java imgproc: fix minAreaRect() 2020-12-10 08:57:58 +00:00
perf Relax accuracy requirements in the OpenCL sqrt perf arithmetic test. 2021-04-06 17:32:48 +01:00
src Merge pull request #19842 from gasparitiago:3.4 2021-06-12 23:28:54 +03:00
test Merge pull request #19842 from gasparitiago:3.4 2021-06-12 23:28:54 +03:00
CMakeLists.txt imgproc: enable GaussianBlur IPP parallel processing 2020-05-17 11:40:34 +00:00