mirror of
https://github.com/opencv/opencv.git
synced 2025-01-19 15:04:01 +08:00
ok, try to handle matrices with size (0,0)
This commit is contained in:
parent
fe88a55b42
commit
2591988414
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user