fixed condition
This commit is contained in:
parent
2dd294cc84
commit
f767077a41
@ -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
|
|||||||
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
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
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
|
|||||||
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,
|
|||||||
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,
|
|||||||
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())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user