Skip to content

Commit

Permalink
Merge pull request opencv#5644 from hoangviet1985:splitError
Browse files Browse the repository at this point in the history
  • Loading branch information
vpisarev committed Nov 23, 2015
2 parents d4d1d03 + e679d97 commit 313dc32
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/core/src/convert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -924,11 +924,10 @@ void cv::split(InputArray _m, OutputArrayOfArrays _mv)

CV_Assert( !_mv.fixedType() || _mv.empty() || _mv.type() == m.depth() );

Size size = m.size();
int depth = m.depth(), cn = m.channels();
_mv.create(cn, 1, depth);
for (int i = 0; i < cn; ++i)
_mv.create(size, depth, i);
_mv.create(m.dims, m.size.p, depth, i);

std::vector<Mat> dst;
_mv.getMatVector(dst);
Expand Down

0 comments on commit 313dc32

Please sign in to comment.