mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Merge branch 4.x
This commit is contained in:
@@ -672,7 +672,7 @@ static void inRangeS(const Mat& src, const Scalar& lb, const Scalar& rb, Mat& ds
|
||||
}
|
||||
|
||||
} // namespace
|
||||
CVTEST_GUARD_SYMBOL(inRange);
|
||||
CVTEST_GUARD_SYMBOL(inRange)
|
||||
|
||||
struct InRangeSOp : public BaseArithmOp
|
||||
{
|
||||
@@ -1202,7 +1202,7 @@ struct MeanOp : public BaseArithmOp
|
||||
MeanOp() : BaseArithmOp(1, FIX_ALPHA+FIX_BETA+FIX_GAMMA+SUPPORT_MASK+SCALAR_OUTPUT, 1, 1, Scalar::all(0))
|
||||
{
|
||||
context = 3;
|
||||
};
|
||||
}
|
||||
void op(const vector<Mat>& src, Mat& dst, const Mat& mask)
|
||||
{
|
||||
dst.create(1, 1, CV_64FC4);
|
||||
@@ -1225,7 +1225,7 @@ struct SumOp : public BaseArithmOp
|
||||
SumOp() : BaseArithmOp(1, FIX_ALPHA+FIX_BETA+FIX_GAMMA+SCALAR_OUTPUT, 1, 1, Scalar::all(0))
|
||||
{
|
||||
context = 3;
|
||||
};
|
||||
}
|
||||
void op(const vector<Mat>& src, Mat& dst, const Mat&)
|
||||
{
|
||||
dst.create(1, 1, CV_64FC4);
|
||||
@@ -1285,7 +1285,7 @@ struct MeanStdDevOp : public BaseArithmOp
|
||||
{
|
||||
cn = 0;
|
||||
context = 7;
|
||||
};
|
||||
}
|
||||
void op(const vector<Mat>& src, Mat& dst, const Mat& mask)
|
||||
{
|
||||
dst.create(1, 2, CV_64FC4);
|
||||
@@ -1326,7 +1326,7 @@ struct NormOp : public BaseArithmOp
|
||||
{
|
||||
context = 1;
|
||||
normType = 0;
|
||||
};
|
||||
}
|
||||
int getRandomType(RNG& rng)
|
||||
{
|
||||
int type = cvtest::randomType(rng, baseArithmTypeMask, 1, 4);
|
||||
@@ -1372,7 +1372,7 @@ struct MinMaxLocOp : public BaseArithmOp
|
||||
MinMaxLocOp() : BaseArithmOp(1, FIX_ALPHA+FIX_BETA+FIX_GAMMA+SUPPORT_MASK+SCALAR_OUTPUT, 1, 1, Scalar::all(0))
|
||||
{
|
||||
context = ARITHM_MAX_NDIMS*2 + 2;
|
||||
};
|
||||
}
|
||||
int getRandomType(RNG& rng)
|
||||
{
|
||||
return cvtest::randomType(rng, baseArithmTypeMask, 1, 1);
|
||||
@@ -1419,7 +1419,7 @@ struct reduceArgMinMaxOp : public BaseArithmOp
|
||||
isLast(false), isMax(false), axis(0)
|
||||
{
|
||||
context = ARITHM_MAX_NDIMS*2 + 2;
|
||||
};
|
||||
}
|
||||
int getRandomType(RNG& rng) override
|
||||
{
|
||||
return cvtest::randomType(rng, baseArithmTypeMask, 1, 1);
|
||||
|
||||
Reference in New Issue
Block a user