possibly improved findHomography accuracy (reported by Luca Del Tongo)

This commit is contained in:
Vadim Pisarevsky 2010-12-10 21:02:13 +00:00
parent da293ee3d9
commit d14b744ea9

View File

@ -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;