We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cf9a019 + 03c4c37 commit d0c64fcCopy full SHA for d0c64fc
modules/core/src/matrix.cpp
@@ -1395,7 +1395,7 @@ void _InputArray::getMatVector(std::vector<Mat>& mv) const
1395
{
1396
const std::vector<uchar>& v = *(const std::vector<uchar>*)obj;
1397
1398
- size_t n = v.size(), esz = CV_ELEM_SIZE(flags);
+ size_t n = size().width, esz = CV_ELEM_SIZE(flags);
1399
int t = CV_MAT_DEPTH(flags), cn = CV_MAT_CN(flags);
1400
mv.resize(n);
1401
0 commit comments