remove redundant code
This commit is contained in:
parent
b3ac274617
commit
e679d97100
@ -924,11 +924,10 @@ void cv::split(InputArray _m, OutputArrayOfArrays _mv)
|
|||||||
|
|
||||||
CV_Assert( !_mv.fixedType() || _mv.empty() || _mv.type() == m.depth() );
|
CV_Assert( !_mv.fixedType() || _mv.empty() || _mv.type() == m.depth() );
|
||||||
|
|
||||||
Size size = m.size();
|
|
||||||
int depth = m.depth(), cn = m.channels();
|
int depth = m.depth(), cn = m.channels();
|
||||||
_mv.create(cn, 1, depth);
|
_mv.create(cn, 1, depth);
|
||||||
for (int i = 0; i < cn; ++i)
|
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;
|
std::vector<Mat> dst;
|
||||||
_mv.getMatVector(dst);
|
_mv.getMatVector(dst);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user