projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe88a55
)
ok, try to handle matrices with size (0,0)
author
Vadim Pisarevsky
<no@email>
Thu, 21 Oct 2010 13:19:15 +0000
(13:19 +0000)
committer
Vadim Pisarevsky
<no@email>
Thu, 21 Oct 2010 13:19:15 +0000
(13:19 +0000)
modules/core/src/matrix.cpp
patch
|
blob
|
history
diff --git
a/modules/core/src/matrix.cpp
b/modules/core/src/matrix.cpp
index
1dcb5a5
..
fe4028b
100644
(file)
--- 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 )