ok, try to handle matrices with size (0,0)

This commit is contained in:
Vadim Pisarevsky 2010-10-21 13:19:15 +00:00
parent fe88a55b42
commit 2591988414

View File

@ -99,7 +99,7 @@ static inline void setSize( Mat& m, int _dims, const int* _sz,
for( i = _dims-1; i >= 0; i-- )
{
int s = _sz[i];
CV_Assert( s >= (i == 0 ? 0 : 1) );
CV_Assert( s >= 0 );
m.size.p[i] = s;
if( _steps )