提交 e679d971 编写于 作者: H hoangviet1985

remove redundant code

上级 b3ac2746
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册