trying to fix failures in tests

This commit is contained in:
Vadim Pisarevsky
2013-10-24 17:23:48 +04:00
parent 303df78cca
commit a9065b7d0c
2 changed files with 9 additions and 5 deletions

View File

@@ -271,7 +271,7 @@ void cv::split(InputArray _m, OutputArrayOfArrays _mv)
_mv.release();
return;
}
CV_Assert( !_mv.fixedType() || _mv.type() == m.depth() );
CV_Assert( !_mv.fixedType() || _mv.empty() || _mv.type() == m.depth() );
_mv.create(m.channels(), 1, m.depth());
Mat* dst = &_mv.getMatRef(0);
split(m, dst);