Commit f767077a authored by Ilya Lavrenov's avatar Ilya Lavrenov

fixed condition

parent 2dd294cc
...@@ -1193,7 +1193,6 @@ Mat _InputArray::getMat(int i) const ...@@ -1193,7 +1193,6 @@ Mat _InputArray::getMat(int i) const
return Mat(); return Mat();
} }
UMat _InputArray::getUMat(int i) const UMat _InputArray::getUMat(int i) const
{ {
int k = kind(); int k = kind();
...@@ -1226,7 +1225,6 @@ UMat _InputArray::getUMat(int i) const ...@@ -1226,7 +1225,6 @@ UMat _InputArray::getUMat(int i) const
return getMat(i).getUMat(accessFlags); return getMat(i).getUMat(accessFlags);
} }
void _InputArray::getMatVector(std::vector<Mat>& mv) const void _InputArray::getMatVector(std::vector<Mat>& mv) const
{ {
int k = kind(); int k = kind();
...@@ -1504,7 +1502,6 @@ Size _InputArray::size(int i) const ...@@ -1504,7 +1502,6 @@ Size _InputArray::size(int i) const
} }
} }
int _InputArray::sizend(int* arrsz, int i) const int _InputArray::sizend(int* arrsz, int i) const
{ {
int j, d=0, k = kind(); int j, d=0, k = kind();
...@@ -1563,7 +1560,6 @@ int _InputArray::sizend(int* arrsz, int i) const ...@@ -1563,7 +1560,6 @@ int _InputArray::sizend(int* arrsz, int i) const
return d; return d;
} }
bool _InputArray::sameSize(const _InputArray& arr) const bool _InputArray::sameSize(const _InputArray& arr) const
{ {
int k1 = kind(), k2 = arr.kind(); int k1 = kind(), k2 = arr.kind();
...@@ -2305,7 +2301,7 @@ void _OutputArray::create(int d, const int* sizes, int mtype, int i, ...@@ -2305,7 +2301,7 @@ void _OutputArray::create(int d, const int* sizes, int mtype, int i,
if(CV_MAT_CN(mtype) == m.channels() && ((1 << CV_MAT_TYPE(flags)) & fixedDepthMask) != 0 ) if(CV_MAT_CN(mtype) == m.channels() && ((1 << CV_MAT_TYPE(flags)) & fixedDepthMask) != 0 )
mtype = m.type(); mtype = m.type();
else else
CV_Assert(!fixedType() || (CV_MAT_CN(mtype) == m.channels() && ((1 << CV_MAT_TYPE(flags)) & fixedDepthMask) != 0)); CV_Assert(CV_MAT_TYPE(mtype) == m.type());
} }
if(fixedSize()) if(fixedSize())
{ {
...@@ -2364,7 +2360,7 @@ void _OutputArray::create(int d, const int* sizes, int mtype, int i, ...@@ -2364,7 +2360,7 @@ void _OutputArray::create(int d, const int* sizes, int mtype, int i,
if(CV_MAT_CN(mtype) == m.channels() && ((1 << CV_MAT_TYPE(flags)) & fixedDepthMask) != 0 ) if(CV_MAT_CN(mtype) == m.channels() && ((1 << CV_MAT_TYPE(flags)) & fixedDepthMask) != 0 )
mtype = m.type(); mtype = m.type();
else else
CV_Assert(!fixedType() || (CV_MAT_CN(mtype) == m.channels() && ((1 << CV_MAT_TYPE(flags)) & fixedDepthMask) != 0)); CV_Assert(CV_MAT_TYPE(mtype) == m.type());
} }
if(fixedSize()) if(fixedSize())
{ {
......
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