Merge pull request #6139 from ioxp:master

This commit is contained in:
Alexander Alekhin 2016-02-25 11:41:49 +00:00
commit 81f21e6e6c

View File

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