From 28de198c75f2c05d0528a48cf0f681ea9f1ea5cf Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Fri, 12 Nov 2010 21:07:41 +0000 Subject: [PATCH] switched from 8-point kernel to 7-point kernel in the fundamental matrix estimator (fixes some corner cases; see ticket #434) --- modules/calib3d/src/fundam.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/calib3d/src/fundam.cpp b/modules/calib3d/src/fundam.cpp index b241ad3f99..785b0f4d8a 100644 --- a/modules/calib3d/src/fundam.cpp +++ b/modules/calib3d/src/fundam.cpp @@ -615,7 +615,7 @@ CV_IMPL int cvFindFundamentalMat( const CvMat* points1, const CvMat* points2, if( !tempMask.empty() ) cvSet( tempMask, cvScalarAll(1.) ); - CvFMEstimator estimator( MIN(count, (method & 3) == CV_FM_7POINT ? 7 : 8) ); + CvFMEstimator estimator(7); if( count == 7 ) result = estimator.run7Point(m1, m2, &_F9x3); else if( count == 8 || method == CV_FM_8POINT )