From 25919884142dc9a900f1894e8adc0acde7e3f26a Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Thu, 21 Oct 2010 13:19:15 +0000 Subject: [PATCH] ok, try to handle matrices with size (0,0) --- modules/core/src/matrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/matrix.cpp b/modules/core/src/matrix.cpp index 1dcb5a54f..fe4028be9 100644 --- a/modules/core/src/matrix.cpp +++ b/modules/core/src/matrix.cpp @@ -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 )