Add maxIters parameter to LMeDS method in findFundamentalMat
authorTiago De Gaspari <gaspari.tiago@gmail.com>
Sun, 4 Apr 2021 00:56:05 +0000 (21:56 -0300)
committerTiago De Gaspari <gaspari.tiago@gmail.com>
Sun, 4 Apr 2021 00:56:05 +0000 (21:56 -0300)
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.

modules/calib3d/src/fundam.cpp

index 3c1b0ce00d18ccd64b9fd7a5eb133f1507722fb4..7fda90641f9266f8798981aec6eb2269ae149427 100644 (file)
@@ -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 )