mirror of
https://github.com/opencv/opencv.git
synced 2024-12-17 02:48:01 +08:00
3cf4375387
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> |
||
---|---|---|
.. | ||
ocl | ||
test_approxpoly.cpp | ||
test_bilateral_filter.cpp | ||
test_boundingrect.cpp | ||
test_canny.cpp | ||
test_color.cpp | ||
test_connectedcomponents.cpp | ||
test_contours.cpp | ||
test_convhull.cpp | ||
test_cvtyuv.cpp | ||
test_distancetransform.cpp | ||
test_drawing.cpp | ||
test_emd.cpp | ||
test_filter.cpp | ||
test_fitellipse_ams.cpp | ||
test_fitellipse_direct.cpp | ||
test_fitellipse.cpp | ||
test_floodfill.cpp | ||
test_goodfeaturetotrack.cpp | ||
test_grabcut.cpp | ||
test_histograms.cpp | ||
test_houghcircles.cpp | ||
test_houghlines.cpp | ||
test_imgproc_umat.cpp | ||
test_imgwarp_strict.cpp | ||
test_imgwarp.cpp | ||
test_intersectconvexconvex.cpp | ||
test_intersection.cpp | ||
test_lsd.cpp | ||
test_main.cpp | ||
test_moments.cpp | ||
test_pc.cpp | ||
test_precomp.hpp | ||
test_resize_bitexact.cpp | ||
test_smooth_bitexact.cpp | ||
test_subdivision2d.cpp | ||
test_templmatch.cpp | ||
test_thresh.cpp | ||
test_watershed.cpp |