opencv/modules/imgproc/src
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
..
opencl imgproc: align GaussianBlur/sepFilter2D OpenCL with CPU version 2020-07-08 15:13:48 +00:00
_geom.h
accum.cpp refactoring catching all exceptions as const ref 2018-11-08 19:59:47 +03:00
accum.dispatch.cpp dispatch accumulate series 2017-07-07 18:45:30 +09:00
accum.simd.hpp Merge pull request #15527 from everton1984:faster_acc 2019-10-11 18:32:59 +03:00
approx.cpp Fix spelling typos 2019-12-27 12:46:53 +00:00
bilateral_filter.dispatch.cpp imgproc: add src.empty() checks in filter operations 2020-03-20 21:04:29 +00:00
bilateral_filter.simd.hpp imgproc: dispatch bilateral_filter 2019-03-11 13:54:12 +00:00
blend.cpp blendLinear() reworked to use wide universal intrinsics 2019-01-25 14:16:20 +03:00
box_filter.dispatch.cpp imgproc: add src.empty() checks in filter operations 2020-03-20 21:04:29 +00:00
box_filter.simd.hpp imgproc: dispatch box_filter 2019-03-11 13:54:12 +00:00
canny.cpp Merge pull request #14916 from terfendail:wsignmask_deprecated 2019-07-01 19:53:51 +03:00
ccl_bolelli_forest_firstline.inc.hpp Merge pull request #19631 from prittt:sota-ccl 2021-02-27 17:27:24 +00:00
ccl_bolelli_forest_lastline.inc.hpp Merge pull request #19631 from prittt:sota-ccl 2021-02-27 17:27:24 +00:00
ccl_bolelli_forest_singleline.inc.hpp Merge pull request #19631 from prittt:sota-ccl 2021-02-27 17:27:24 +00:00
ccl_bolelli_forest.inc.hpp Merge pull request #19631 from prittt:sota-ccl 2021-02-27 17:27:24 +00:00
clahe.cpp Move big objects (>20k) from stack to heap. 2020-12-17 09:36:51 +01:00
color_hsv.dispatch.cpp imgproc: dispatch color* 2019-03-07 15:45:05 +03:00
color_hsv.simd.hpp rgb2hls_b: out of bounds read fixed 2019-05-27 16:19:52 +03:00
color_lab.cpp Merge pull request #19883 from jondea:arm-neon-optimised-color-lab-3.4 2021-05-28 14:20:26 +00:00
color_rgb.dispatch.cpp imgproc: dispatch color* 2019-03-07 15:45:05 +03:00
color_rgb.simd.hpp imgproc: dispatch color* 2019-03-07 15:45:05 +03:00
color_yuv.dispatch.cpp imgproc: add missing check into cvtColorTwoPlane() 2020-07-16 20:01:44 +00:00
color_yuv.simd.hpp Fix the build of imgproc using MinGW (variables with the same name as symbols defined in MinGW headers) 2020-06-18 20:13:34 +00:00
color.cpp imgproc: dispatch color* 2019-03-07 15:45:05 +03:00
color.hpp Added YUV conversion fix 2020-12-18 21:40:32 +03:00
color.simd_helpers.hpp imgproc: dispatch color* 2019-03-07 15:45:05 +03:00
colormap.cpp add DeepGreen colormap 2020-05-12 15:24:32 +03:00
connectedcomponents.cpp Merge pull request #19631 from prittt:sota-ccl 2021-02-27 17:27:24 +00:00
contours.cpp Merge pull request #19951 from stal12:3.4 2021-04-22 18:20:12 +00:00
convhull.cpp Merge pull request #16594 from vpisarev:hull_ordering_fix 2020-02-21 18:18:24 +03:00
corner.avx.cpp Merge pull request #16236 from alalek:fix_core_simd_emulator 2020-01-10 21:31:02 +03:00
corner.cpp Restored IPP call reduction 2019-07-31 15:41:22 +03:00
corner.hpp AVX optimized implementation of Harris corner detector migrated to separate file 2017-06-29 15:19:23 +03:00
cornersubpix.cpp Add semicolons after CV_INSTRUMENT macros 2018-09-14 06:45:31 +09:00
demosaicing.cpp Update demosaicing.cpp 2020-10-16 11:15:42 +00:00
deriv.cpp imgproc: add src.empty() checks in filter operations 2020-03-20 21:04:29 +00:00
distransform.cpp imgproc(IPP): disable ippiDistanceTransform_3x3_8u32f_C1R 2019-11-13 14:14:19 +03:00
drawing.cpp fixed fillPoly, the overloaded variant with InputArrayOfArrays parameter (single or multiple polygons) 2020-05-28 21:36:28 +03:00
emd.cpp Add semicolons after CV_INSTRUMENT macros 2018-09-14 06:45:31 +09:00
featureselect.cpp refactoring catching all exceptions as const ref 2018-11-08 19:59:47 +03:00
filter.dispatch.cpp imgproc: align GaussianBlur/sepFilter2D OpenCL with CPU version 2020-07-08 15:13:48 +00:00
filter.hpp imgproc: align GaussianBlur/sepFilter2D OpenCL with CPU version 2020-07-08 15:13:48 +00:00
filter.simd.hpp imgproc: fix unaligned memory access 2019-07-11 20:49:47 +00:00
filterengine.hpp Merge pull request #14936 from StefanBruens:crosscorr_cleanup 2019-06-30 19:04:25 +03:00
fixedpoint.inl.hpp Merge pull request #18167 from Yosshi999:bit-exact-gaussian 2020-09-01 10:28:25 +00:00
floodfill.cpp Add semicolons after CV_INSTRUMENT macros 2018-09-14 06:45:31 +09:00
gabor.cpp
gcgraph.hpp calib3d/imgproc: add GCGraph::maxFlow() missing empty checks 2020-10-02 05:15:20 +00:00
generalized_hough.cpp Add semicolons after CV_INSTRUMENT macros 2018-09-14 06:45:31 +09:00
geometry.cpp imgproc: fixed bug from intersectConvexConvex 2019-05-01 11:06:30 +02:00
grabcut.cpp imgproc: fix kmeans() call from grabCut() 2019-06-25 13:42:04 +03:00
hal_replacement.hpp HAL for canny 2017-12-19 11:03:10 +03:00
hershey_fonts.cpp removed optim module; moved its functionality to core and photo modules; moved drawing functions from core to imgproc. Removed FilterEngine etc. from public API 2014-08-14 12:50:07 +04:00
histogram.cpp imgproc: add parameter checks in calcHist and calcBackProj 2019-12-10 16:10:19 +03:00
hough.cpp Fix modules/ typos 2019-08-16 17:34:29 +03:00
imgwarp.avx2.cpp Move resize implementation to separate file 2017-08-31 14:36:19 +03:00
imgwarp.cpp delete unused variable 2021-04-02 10:30:27 +08:00
imgwarp.hpp Merge pull request #15358 from ChipKerchner:imgwarpToHal 2019-08-31 13:47:58 +03:00
imgwarp.sse4_1.cpp imgproc: apply CV_OVERRIDE/CV_FINAL 2018-03-28 17:57:59 +03:00
intersection.cpp Merge pull request #19842 from gasparitiago:3.4 2021-06-12 23:28:54 +03:00
linefit.cpp imgproc: fix fitLine() implementation 2019-10-03 21:23:52 +00:00
lsd.cpp imgproc: removed LSD code due original code license conflict 2019-03-01 16:25:39 +03:00
main.cpp IPPInitSingelton was added to contain IPP related global variables; 2015-10-01 09:58:48 +03:00
matchcontours.cpp Add semicolons after CV_INSTRUMENT macros 2018-09-14 06:45:31 +09:00
median_blur.dispatch.cpp imgproc: add src.empty() checks in filter operations 2020-03-20 21:04:29 +00:00
median_blur.simd.hpp imgproc: dispatch medianBlur 2019-03-11 13:54:12 +00:00
min_enclosing_triangle.cpp More issues found by static analysis 2018-07-24 16:04:42 +03:00
moments.cpp Merge pull request #15828 from ChipKerchner:momentsToHal 2019-11-05 18:52:35 +03:00
morph.dispatch.cpp imgproc: add src.empty() checks in filter operations 2020-03-20 21:04:29 +00:00
morph.simd.hpp imgproc: dispatch morph 2019-03-11 13:54:12 +00:00
phasecorr.cpp Merge pull request #20102 from yo1990:master 2021-05-29 17:43:21 +03:00
precomp.hpp build: unreachable code after CV_Error() (part 2) 2018-04-24 16:03:40 +03:00
pyramids.cpp Move big objects (>20k) from stack to heap. 2020-12-17 09:36:51 +01:00
resize.avx2.cpp imgproc(resize): drop unused 'pix_size4' 2020-03-29 02:41:50 +00:00
resize.cpp Merge pull request #18053 from Yosshi999:bit-exact-resizeNN 2020-08-28 21:20:05 +03:00
resize.hpp imgproc(resize): drop unused 'pix_size4' 2020-03-29 02:41:50 +00:00
resize.sse4_1.cpp imgproc(resize): drop unused 'pix_size4' 2020-03-29 02:41:50 +00:00
rotcalipers.cpp imgproc: fix minAreaRect() 2020-12-10 08:57:58 +00:00
samplers.cpp Add semicolons after CV_INSTRUMENT macros 2018-09-14 06:45:31 +09:00
segmentation.cpp Add semicolons after CV_INSTRUMENT macros 2018-09-14 06:45:31 +09:00
shapedescr.cpp Merge pull request #17417 from vpisarev:fix_fitellipse 2020-06-01 18:01:20 +00:00
smooth.dispatch.cpp Merge pull request #18167 from Yosshi999:bit-exact-gaussian 2020-09-01 10:28:25 +00:00
smooth.simd.hpp fix data overflow problem in GaussianBlur 2021-05-21 15:17:20 +08:00
spatialgradient.cpp Merge pull request #13693 from terfendail:spatialgrad_wintr 2019-01-30 22:37:27 +03:00
subdivision2d.cpp removed no-affect variable 2020-10-02 09:27:16 +05:30
sumpixels.avx512_skx.hpp imgproc: dispatch sumpixels (integral) 2020-01-17 16:54:29 +03:00
sumpixels.dispatch.cpp fix files permissions 2020-04-13 04:29:55 +00:00
sumpixels.simd.hpp Merge pull request #16731 from alalek:issue_16708 2020-03-04 19:28:04 +00:00
tables.cpp
templmatch.cpp address template matching sqdiff bug 2021-04-25 22:17:07 -04:00
thresh.cpp Merge pull request #16085 from alalek:imgproc_threshold_to_zero_ipp_bug 2019-12-09 14:51:02 +03:00
undistort.dispatch.cpp Merge pull request #14994 from terfendail:wintr_undistort 2019-07-18 19:32:51 +03:00
undistort.simd.hpp Fixed universal intrinsic undistort() implementation 2019-09-16 17:16:38 +03:00
utils.cpp