1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00
This commit is contained in:
Vadim Pisarevsky
2011-09-22 09:58:58 +00:00
parent 39533a0b1b
commit a1d6671451
2 changed files with 12 additions and 7 deletions
+4 -2
View File
@@ -877,8 +877,10 @@ Mat _InputArray::getMat(int i) const
if( k == MAT )
{
CV_Assert( i < 0 );
return *(const Mat*)obj;
const Mat* m = (const Mat*)obj;
if( i < 0 )
return *m;
return m->row(i);
}
if( k == EXPR )