mask.create() re-converted to new style
This commit is contained in:
parent
0c61a8887e
commit
f303de12d8
@ -692,8 +692,7 @@ cv::Mat cv::findFundamentalMat( InputArray _points1, InputArray _points2,
|
|||||||
result = cb->runKernel(m1, m2, F);
|
result = cb->runKernel(m1, m2, F);
|
||||||
if( _mask.needed() )
|
if( _mask.needed() )
|
||||||
{
|
{
|
||||||
if( !_mask.fixedSize() )
|
_mask.create(npoints, 1, CV_8U, -1, true);
|
||||||
_mask.create(npoints, 1, CV_8U);
|
|
||||||
Mat mask = _mask.getMat();
|
Mat mask = _mask.getMat();
|
||||||
CV_Assert( (mask.cols == 1 || mask.rows == 1) && (int)mask.total() == npoints );
|
CV_Assert( (mask.cols == 1 || mask.rows == 1) && (int)mask.total() == npoints );
|
||||||
mask.setTo(Scalar::all(1));
|
mask.setTo(Scalar::all(1));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user