possibly improved findHomography accuracy (reported by Luca Del Tongo)
This commit is contained in:
parent
da293ee3d9
commit
d14b744ea9
@ -260,7 +260,10 @@ cvFindHomography( const CvMat* objectPoints, const CvMat* imagePoints,
|
|||||||
if( method == CV_LMEDS )
|
if( method == CV_LMEDS )
|
||||||
result = estimator.runLMeDS( M, m, &matH, tempMask, confidence, maxIters );
|
result = estimator.runLMeDS( M, m, &matH, tempMask, confidence, maxIters );
|
||||||
else if( method == CV_RANSAC )
|
else if( method == CV_RANSAC )
|
||||||
|
{
|
||||||
result = estimator.runRANSAC( M, m, &matH, tempMask, ransacReprojThreshold, confidence, maxIters);
|
result = estimator.runRANSAC( M, m, &matH, tempMask, ransacReprojThreshold, confidence, maxIters);
|
||||||
|
estimator.runKernel( M, m, &matH );
|
||||||
|
}
|
||||||
else
|
else
|
||||||
result = estimator.runKernel( M, m, &matH ) > 0;
|
result = estimator.runKernel( M, m, &matH ) > 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user