From 2b26094cf567ca02115227e0d115e255be31ae5d Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Fri, 27 Nov 2015 16:46:20 +0300 Subject: [PATCH] increase epsilons in some tests: * MulSpectrums * StereoConstantSpaceBP * BruteForceNonLocalMeans --- modules/cudaarithm/perf/perf_arithm.cpp | 4 ++-- modules/cudastereo/test/test_stereo.cpp | 2 +- modules/photo/test/test_denoising.cuda.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/cudaarithm/perf/perf_arithm.cpp b/modules/cudaarithm/perf/perf_arithm.cpp index 42dd7724b5..c58397bf36 100644 --- a/modules/cudaarithm/perf/perf_arithm.cpp +++ b/modules/cudaarithm/perf/perf_arithm.cpp @@ -128,7 +128,7 @@ PERF_TEST_P(Sz_Flags, MulSpectrums, TEST_CYCLE() cv::cuda::mulSpectrums(d_a, d_b, dst, flag); - CUDA_SANITY_CHECK(dst); + CUDA_SANITY_CHECK(dst, 1e-6, ERROR_RELATIVE); } else { @@ -162,7 +162,7 @@ PERF_TEST_P(Sz, MulAndScaleSpectrums, 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 { diff --git a/modules/cudastereo/test/test_stereo.cpp b/modules/cudastereo/test/test_stereo.cpp index bb20a6247e..bc9aa37bb4 100644 --- a/modules/cudastereo/test/test_stereo.cpp +++ b/modules/cudastereo/test/test_stereo.cpp @@ -163,7 +163,7 @@ CUDA_TEST_P(StereoConstantSpaceBP, Regression) cv::Mat h_disp(disp); 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); diff --git a/modules/photo/test/test_denoising.cuda.cpp b/modules/photo/test/test_denoising.cuda.cpp index 209bac3328..050d23f0ce 100644 --- a/modules/photo/test/test_denoising.cuda.cpp +++ b/modules/photo/test/test_denoising.cuda.cpp @@ -81,7 +81,7 @@ TEST(CUDA_BruteForceNonLocalMeans, Regression) cv::resize(bgr_gold, bgr_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); }