提交 f303de12 编写于 作者: V Vadim Pisarevsky

mask.create() re-converted to new style

上级 0c61a888
......@@ -692,8 +692,7 @@ cv::Mat cv::findFundamentalMat( InputArray _points1, InputArray _points2,
result = cb->runKernel(m1, m2, F);
if( _mask.needed() )
{
if( !_mask.fixedSize() )
_mask.create(npoints, 1, CV_8U);
_mask.create(npoints, 1, CV_8U, -1, true);
Mat mask = _mask.getMat();
CV_Assert( (mask.cols == 1 || mask.rows == 1) && (int)mask.total() == npoints );
mask.setTo(Scalar::all(1));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册