This commit is contained in:
Maria Dimashova 2011-05-30 15:11:34 +00:00
parent 1c0f7e0e47
commit d5a79f8b19

View File

@ -201,7 +201,7 @@ void doIteration( const Mat& img1, Mat& img2, bool isWarpPerspective,
Mat points1t; perspectiveTransform(Mat(points1), points1t, H12);
for( size_t i1 = 0; i1 < points1.size(); i1++ )
{
if( norm(points2[i1] - points1t.at<Point2f>((int)i1,0)) < 4 ) // inlier
if( norm(points2[i1] - points1t.at<Point2f>((int)i1,0)) < ransacReprojThreshold ) // inlier
matchesMask[i1] = 1;
}
// draw inliers