Commit 2b26094c authored by Vladislav Vinogradov's avatar Vladislav Vinogradov

increase epsilons in some tests:

* MulSpectrums
* StereoConstantSpaceBP
* BruteForceNonLocalMeans
parent 2afb02fc
...@@ -128,7 +128,7 @@ PERF_TEST_P(Sz_Flags, MulSpectrums, ...@@ -128,7 +128,7 @@ PERF_TEST_P(Sz_Flags, MulSpectrums,
TEST_CYCLE() cv::cuda::mulSpectrums(d_a, d_b, dst, flag); TEST_CYCLE() cv::cuda::mulSpectrums(d_a, d_b, dst, flag);
CUDA_SANITY_CHECK(dst); CUDA_SANITY_CHECK(dst, 1e-6, ERROR_RELATIVE);
} }
else else
{ {
...@@ -162,7 +162,7 @@ PERF_TEST_P(Sz, MulAndScaleSpectrums, ...@@ -162,7 +162,7 @@ PERF_TEST_P(Sz, MulAndScaleSpectrums,
TEST_CYCLE() cv::cuda::mulAndScaleSpectrums(d_src1, d_src2, dst, cv::DFT_ROWS, scale, false); TEST_CYCLE() cv::cuda::mulAndScaleSpectrums(d_src1, d_src2, dst, cv::DFT_ROWS, scale, false);
CUDA_SANITY_CHECK(dst); CUDA_SANITY_CHECK(dst, 1e-6, ERROR_RELATIVE);
} }
else else
{ {
......
...@@ -163,7 +163,7 @@ CUDA_TEST_P(StereoConstantSpaceBP, Regression) ...@@ -163,7 +163,7 @@ CUDA_TEST_P(StereoConstantSpaceBP, Regression)
cv::Mat h_disp(disp); cv::Mat h_disp(disp);
h_disp.convertTo(h_disp, disp_gold.depth()); h_disp.convertTo(h_disp, disp_gold.depth());
EXPECT_MAT_NEAR(disp_gold, h_disp, 1.0); EXPECT_MAT_SIMILAR(disp_gold, h_disp, 1e-4);
} }
INSTANTIATE_TEST_CASE_P(CUDA_Stereo, StereoConstantSpaceBP, ALL_DEVICES); INSTANTIATE_TEST_CASE_P(CUDA_Stereo, StereoConstantSpaceBP, ALL_DEVICES);
......
...@@ -81,7 +81,7 @@ TEST(CUDA_BruteForceNonLocalMeans, Regression) ...@@ -81,7 +81,7 @@ TEST(CUDA_BruteForceNonLocalMeans, Regression)
cv::resize(bgr_gold, bgr_gold, cv::Size(256, 256)); cv::resize(bgr_gold, bgr_gold, cv::Size(256, 256));
cv::resize(gray_gold, gray_gold, cv::Size(256, 256)); cv::resize(gray_gold, gray_gold, cv::Size(256, 256));
EXPECT_MAT_NEAR(bgr_gold, dbgr, 1e-4); EXPECT_MAT_NEAR(bgr_gold, dbgr, 1);
EXPECT_MAT_NEAR(gray_gold, dgray, 1e-4); EXPECT_MAT_NEAR(gray_gold, dgray, 1e-4);
} }
......
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