findHomography sets output mask to all zeros in case of no inlier
This commit is contained in:
parent
46662ccd99
commit
3f1eeba39d
@ -411,7 +411,13 @@ cv::Mat cv::findHomography( InputArray _points1, InputArray _points2,
|
||||
tempMask.copyTo(_mask);
|
||||
}
|
||||
else
|
||||
{
|
||||
H.release();
|
||||
if(_mask.needed() ) {
|
||||
tempMask = Mat::zeros(npoints >= 0 ? npoints : 0, 1, CV_8U);
|
||||
tempMask.copyTo(_mask);
|
||||
}
|
||||
}
|
||||
|
||||
return H;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user