From 0205238dca12f15ef5183267702cadda55abddf2 Mon Sep 17 00:00:00 2001 From: Vitaly Tuzov Date: Wed, 8 Nov 2017 20:27:07 +0300 Subject: [PATCH] Fix for intersectConvexConvex nested contours check --- modules/imgproc/src/geometry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imgproc/src/geometry.cpp b/modules/imgproc/src/geometry.cpp index 0377ba3b6b43..cf9cb072b718 100644 --- a/modules/imgproc/src/geometry.cpp +++ b/modules/imgproc/src/geometry.cpp @@ -568,7 +568,7 @@ float cv::intersectConvexConvex( InputArray _p1, InputArray _p2, OutputArray _p1 result = fp2; nr = m; } - else if( pointPolygonTest(_InputArray(fp2, n), fp1[0], false) >= 0 ) + else if( pointPolygonTest(_InputArray(fp2, m), fp1[0], false) >= 0 ) { result = fp1; nr = n;