some more minor fixes

This commit is contained in:
Vadim Pisarevsky
2013-03-04 16:02:15 +04:00
parent 8a6d2bbd3d
commit 7fd1d75738
2 changed files with 20 additions and 25 deletions

View File

@@ -182,8 +182,7 @@ public:
if( _mask.needed() )
{
if( !_mask.fixedSize() )
_mask.create(count, 1, CV_8U);
_mask.create(count, 1, CV_8U, -1, true);
bestMask0 = bestMask = _mask.getMat();
CV_Assert( (bestMask.cols == 1 || bestMask.rows == 1) && (int)bestMask.total() == count );
}
@@ -301,8 +300,7 @@ public:
if( _mask.needed() )
{
if( !_mask.fixedSize() )
_mask.create(count, 1, CV_8U);
_mask.create(count, 1, CV_8U, -1, true);
mask0 = mask = _mask.getMat();
CV_Assert( (mask.cols == 1 || mask.rows == 1) && (int)mask.total() == count );
}