Commit 81f21e6e authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #6139 from ioxp:master

parents 17154177 3f1eeba3
...@@ -411,7 +411,13 @@ cv::Mat cv::findHomography( InputArray _points1, InputArray _points2, ...@@ -411,7 +411,13 @@ cv::Mat cv::findHomography( InputArray _points1, InputArray _points2,
tempMask.copyTo(_mask); tempMask.copyTo(_mask);
} }
else else
{
H.release(); H.release();
if(_mask.needed() ) {
tempMask = Mat::zeros(npoints >= 0 ? npoints : 0, 1, CV_8U);
tempMask.copyTo(_mask);
}
}
return H; return H;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment