Commit d14b744e authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

possibly improved findHomography accuracy (reported by Luca Del Tongo)

parent da293ee3
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment