From 2b635edce644da37d7fe066eb0e5d5f94d889006 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Tue, 16 Jan 2018 23:47:15 +0100 Subject: [PATCH] fix issue #10612. --- modules/calib3d/src/ptsetreg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/calib3d/src/ptsetreg.cpp b/modules/calib3d/src/ptsetreg.cpp index f9cb054e0c..6087f42f86 100644 --- a/modules/calib3d/src/ptsetreg.cpp +++ b/modules/calib3d/src/ptsetreg.cpp @@ -591,12 +591,12 @@ public: } } - bool checkSubset( InputArray _ms1, InputArray, int count ) const + bool checkSubset( InputArray _ms1, InputArray _ms2, int count ) const { Mat ms1 = _ms1.getMat(); + Mat ms2 = _ms2.getMat(); // check collinearity and also check that points are too close - // only ms1 affects actual estimation stability - return !haveCollinearPoints(ms1, count); + return !haveCollinearPoints(ms1, count) && !haveCollinearPoints(ms2, count); } };