Commit d0c64fca authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #8433 from csukuangfj:issue-8189

parents cf9a0197 03c4c379
...@@ -1395,7 +1395,7 @@ void _InputArray::getMatVector(std::vector<Mat>& mv) const ...@@ -1395,7 +1395,7 @@ void _InputArray::getMatVector(std::vector<Mat>& mv) const
{ {
const std::vector<uchar>& v = *(const std::vector<uchar>*)obj; const std::vector<uchar>& v = *(const std::vector<uchar>*)obj;
size_t n = v.size(), esz = CV_ELEM_SIZE(flags); size_t n = size().width, esz = CV_ELEM_SIZE(flags);
int t = CV_MAT_DEPTH(flags), cn = CV_MAT_CN(flags); int t = CV_MAT_DEPTH(flags), cn = CV_MAT_CN(flags);
mv.resize(n); mv.resize(n);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment