|
|
@ -408,7 +408,6 @@ cv::Mat cv::findHomography( InputArray _points1, InputArray _points2, |
|
|
|
else |
|
|
|
else |
|
|
|
CV_Error(Error::StsBadArg, "Unknown estimation method"); |
|
|
|
CV_Error(Error::StsBadArg, "Unknown estimation method"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( result && npoints > 4 && method != RHO) |
|
|
|
if( result && npoints > 4 && method != RHO) |
|
|
|
{ |
|
|
|
{ |
|
|
|
compressPoints( src.ptr<Point2f>(), tempMask.ptr<uchar>(), 1, npoints ); |
|
|
|
compressPoints( src.ptr<Point2f>(), tempMask.ptr<uchar>(), 1, npoints ); |
|
|
@ -421,7 +420,6 @@ cv::Mat cv::findHomography( InputArray _points1, InputArray _points2, |
|
|
|
dst = dst1; |
|
|
|
dst = dst1; |
|
|
|
if( method == RANSAC || method == LMEDS ) |
|
|
|
if( method == RANSAC || method == LMEDS ) |
|
|
|
cb->runKernel( src, dst, H ); |
|
|
|
cb->runKernel( src, dst, H ); |
|
|
|
|
|
|
|
|
|
|
|
Mat H8(8, 1, CV_64F, H.ptr<double>()); |
|
|
|
Mat H8(8, 1, CV_64F, H.ptr<double>()); |
|
|
|
createLMSolver(makePtr<HomographyRefineCallback>(src, dst), 10)->run(H8); |
|
|
|
createLMSolver(makePtr<HomographyRefineCallback>(src, dst), 10)->run(H8); |
|
|
|
} |
|
|
|
} |
|
|
|