From: Tiago De Gaspari Date: Sun, 4 Apr 2021 00:56:05 +0000 (-0300) Subject: Add maxIters parameter to LMeDS method in findFundamentalMat X-Git-Tag: submit/tizen/20220120.021815~1^2~1^2~76^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac9182f20d212bd3d826030157c800f6b9cd5b7b;p=platform%2Fupstream%2Fopencv.git Add maxIters parameter to LMeDS method in findFundamentalMat This commit passes the parameter maxIters that represent the maximum number of iterations, that can be passed to findFundamentalMat to the method LMeDS. This parameter were added to the function findFundamentalMat and were passed just for the RANSAC method, but should be passed to both methods to be consistent. --- diff --git a/modules/calib3d/src/fundam.cpp b/modules/calib3d/src/fundam.cpp index 3c1b0ce00d..7fda90641f 100644 --- a/modules/calib3d/src/fundam.cpp +++ b/modules/calib3d/src/fundam.cpp @@ -866,7 +866,7 @@ cv::Mat cv::findFundamentalMat( InputArray _points1, InputArray _points2, if( (method & ~3) == FM_RANSAC && npoints >= 15 ) result = createRANSACPointSetRegistrator(cb, 7, ransacReprojThreshold, confidence, maxIters)->run(m1, m2, F, _mask); else - result = createLMeDSPointSetRegistrator(cb, 7, confidence)->run(m1, m2, F, _mask); + result = createLMeDSPointSetRegistrator(cb, 7, confidence, maxIters)->run(m1, m2, F, _mask); } if( result <= 0 )