From d14b744ea98368a5eef8a54c1eb2117e7c3d83fb Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Fri, 10 Dec 2010 21:02:13 +0000 Subject: [PATCH] possibly improved findHomography accuracy (reported by Luca Del Tongo) --- modules/calib3d/src/fundam.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/calib3d/src/fundam.cpp b/modules/calib3d/src/fundam.cpp index cc3712550..c7e1f8b19 100644 --- a/modules/calib3d/src/fundam.cpp +++ b/modules/calib3d/src/fundam.cpp @@ -260,7 +260,10 @@ cvFindHomography( const CvMat* objectPoints, const CvMat* imagePoints, if( method == CV_LMEDS ) result = estimator.runLMeDS( M, m, &matH, tempMask, confidence, maxIters ); else if( method == CV_RANSAC ) + { result = estimator.runRANSAC( M, m, &matH, tempMask, ransacReprojThreshold, confidence, maxIters); + estimator.runKernel( M, m, &matH ); + } else result = estimator.runKernel( M, m, &matH ) > 0;