increase epsilons for some tests, which functions use floating point arithm
authorVladislav Vinogradov <vlad.vinogradov@itseez.com>
Thu, 23 Oct 2014 14:39:36 +0000 (18:39 +0400)
committerAlexander Smorkalov <alexander.smorkalov@itseez.com>
Tue, 4 Nov 2014 07:19:18 +0000 (10:19 +0300)
(cherry picked from commit 5c07e0b6d3f120c964ce8fac58bd2ab0ede96562)

modules/gpu/perf/perf_imgproc.cpp
modules/gpu/perf/perf_video.cpp
modules/gpu/test/test_denoising.cpp

index 01327d2..c867708 100644 (file)
@@ -1413,7 +1413,7 @@ PERF_TEST_P(Sz_Depth_Code, ImgProc_CvtColor,
 
         TEST_CYCLE() cv::gpu::cvtColor(d_src, dst, info.code, info.dcn);
 
-        GPU_SANITY_CHECK(dst, 1e-4);
+        GPU_SANITY_CHECK(dst, 1e-2);
     }
     else
     {
@@ -1609,7 +1609,7 @@ PERF_TEST_P(Sz_Depth_Cn, ImgProc_ImagePyramidBuild,
         cv::gpu::GpuMat dst;
         d_pyr.getLayer(dst, dstSize);
 
-        GPU_SANITY_CHECK(dst);
+        GPU_SANITY_CHECK(dst, 1e-3);
     }
     else
     {
@@ -1646,7 +1646,7 @@ PERF_TEST_P(Sz_Depth_Cn, ImgProc_ImagePyramidGetLayer,
 
         TEST_CYCLE() d_pyr.getLayer(dst, dstSize);
 
-        GPU_SANITY_CHECK(dst);
+        GPU_SANITY_CHECK(dst, 1e-3);
     }
     else
     {
index 16e0844..2d33ff9 100644 (file)
@@ -143,7 +143,7 @@ PERF_TEST_P(ImagePair, Video_CreateOpticalFlowNeedleMap,
 
         TEST_CYCLE() cv::gpu::createOpticalFlowNeedleMap(u, v, vertex, colors);
 
-        GPU_SANITY_CHECK(vertex, 1e-6);
+        GPU_SANITY_CHECK(vertex, 1e-5);
         GPU_SANITY_CHECK(colors);
     }
     else
index e416e92..4d98e10 100644 (file)
@@ -134,8 +134,8 @@ GPU_TEST_P(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(gray_gold, dgray, 1e-4);
+    EXPECT_MAT_NEAR(bgr_gold, dbgr, 1);
+    EXPECT_MAT_NEAR(gray_gold, dgray, 1);
 }
 
 INSTANTIATE_TEST_CASE_P(GPU_Denoising, BruteForceNonLocalMeans, ALL_DEVICES);