mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Merge pull request #1970 from ilya-lavrenov:tapi_checks
This commit is contained in:
@@ -86,8 +86,7 @@ PARAM_TEST_CASE(CvtColor, MatDepth, bool)
|
||||
|
||||
void Near(double threshold)
|
||||
{
|
||||
EXPECT_MAT_NEAR(dst_roi, udst_roi, threshold);
|
||||
EXPECT_MAT_NEAR(dst, udst, threshold);
|
||||
OCL_EXPECT_MATS_NEAR(dst, threshold)
|
||||
}
|
||||
|
||||
void performTest(int channelsIn, int channelsOut, int code, double threshold = 1e-3)
|
||||
|
||||
@@ -97,15 +97,9 @@ PARAM_TEST_CASE(ImgprocTestBase, MatType,
|
||||
void Near(double threshold = 0.0, bool relative = false)
|
||||
{
|
||||
if (relative)
|
||||
{
|
||||
EXPECT_MAT_NEAR_RELATIVE(dst, udst, threshold);
|
||||
EXPECT_MAT_NEAR_RELATIVE(dst_roi, udst_roi, threshold);
|
||||
}
|
||||
OCL_EXPECT_MATS_NEAR_RELATIVE(dst, threshold)
|
||||
else
|
||||
{
|
||||
EXPECT_MAT_NEAR(dst, udst, threshold);
|
||||
EXPECT_MAT_NEAR(dst_roi, udst_roi, threshold);
|
||||
}
|
||||
OCL_EXPECT_MATS_NEAR(dst, threshold)
|
||||
}
|
||||
};
|
||||
|
||||
@@ -158,10 +152,9 @@ PARAM_TEST_CASE(CopyMakeBorder, MatDepth, // depth
|
||||
UMAT_UPLOAD_OUTPUT_PARAMETER(dst)
|
||||
}
|
||||
|
||||
void Near(double threshold = 0.0)
|
||||
void Near()
|
||||
{
|
||||
EXPECT_MAT_NEAR(dst, udst, threshold);
|
||||
EXPECT_MAT_NEAR(dst_roi, udst_roi, threshold);
|
||||
OCL_EXPECT_MATS_NEAR(dst, 0)
|
||||
}
|
||||
};
|
||||
|
||||
@@ -305,15 +298,9 @@ struct Integral :
|
||||
void Near2(double threshold = 0.0, bool relative = false)
|
||||
{
|
||||
if (relative)
|
||||
{
|
||||
EXPECT_MAT_NEAR_RELATIVE(dst2, udst2, threshold);
|
||||
EXPECT_MAT_NEAR_RELATIVE(dst2_roi, udst2_roi, threshold);
|
||||
}
|
||||
OCL_EXPECT_MATS_NEAR_RELATIVE(dst2, threshold)
|
||||
else
|
||||
{
|
||||
EXPECT_MAT_NEAR(dst2, udst2, threshold);
|
||||
EXPECT_MAT_NEAR(dst2_roi, udst2_roi, threshold);
|
||||
}
|
||||
OCL_EXPECT_MATS_NEAR(dst2, threshold)
|
||||
}
|
||||
};
|
||||
|
||||
@@ -412,8 +399,7 @@ PARAM_TEST_CASE(CLAHETest, Size, double, bool)
|
||||
|
||||
void Near(double threshold = 0.0)
|
||||
{
|
||||
EXPECT_MAT_NEAR(dst, udst, threshold);
|
||||
EXPECT_MAT_NEAR(dst_roi, udst_roi, threshold);
|
||||
OCL_EXPECT_MATS_NEAR(dst, threshold)
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -104,8 +104,7 @@ PARAM_TEST_CASE(WarpTestBase, MatType, Interpolation, bool, bool)
|
||||
|
||||
void Near(double threshold = 0.0)
|
||||
{
|
||||
EXPECT_MAT_NEAR(dst, udst, threshold);
|
||||
EXPECT_MAT_NEAR(dst_roi, udst_roi, threshold);
|
||||
OCL_EXPECT_MATS_NEAR(dst, threshold)
|
||||
}
|
||||
};
|
||||
|
||||
@@ -203,8 +202,7 @@ PARAM_TEST_CASE(Resize, MatType, double, double, Interpolation, bool)
|
||||
|
||||
void Near(double threshold = 0.0)
|
||||
{
|
||||
EXPECT_MAT_NEAR(dst_roi, udst_roi, threshold);
|
||||
EXPECT_MAT_NEAR(dst, udst, threshold);
|
||||
OCL_EXPECT_MATS_NEAR(dst, threshold)
|
||||
}
|
||||
};
|
||||
|
||||
@@ -280,8 +278,7 @@ PARAM_TEST_CASE(Remap, MatDepth, Channels, std::pair<MatType, MatType>, BorderTy
|
||||
|
||||
void Near(double threshold = 0.0)
|
||||
{
|
||||
EXPECT_MAT_NEAR(dst, udst, threshold);
|
||||
EXPECT_MAT_NEAR(dst_roi, udst_roi, threshold);
|
||||
OCL_EXPECT_MATS_NEAR(dst, threshold)
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user