From a984da911bc593aa3ea786f950ebd2d6af65bc1c Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Tue, 14 Apr 2015 10:12:56 +0300 Subject: [PATCH] increase epsilons for some sanity tests (cherry picked from commit 6a6619ec1eb20e1c78705167c76fad4f0f6b578a) --- modules/gpu/perf/perf_features2d.cpp | 2 +- modules/gpu/perf/perf_imgproc.cpp | 4 ++-- modules/gpu/perf/perf_video.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/gpu/perf/perf_features2d.cpp b/modules/gpu/perf/perf_features2d.cpp index 45823ce..2b1ab58 100644 --- a/modules/gpu/perf/perf_features2d.cpp +++ b/modules/gpu/perf/perf_features2d.cpp @@ -123,7 +123,7 @@ PERF_TEST_P(Image_NFeatures, Features2D_ORB, sortKeyPoints(gpu_keypoints, gpu_descriptors); - SANITY_CHECK_KEYPOINTS(gpu_keypoints); + SANITY_CHECK_KEYPOINTS(gpu_keypoints, 1e-10); SANITY_CHECK(gpu_descriptors); } else diff --git a/modules/gpu/perf/perf_imgproc.cpp b/modules/gpu/perf/perf_imgproc.cpp index 85f3548..cbeb0f0 100644 --- a/modules/gpu/perf/perf_imgproc.cpp +++ b/modules/gpu/perf/perf_imgproc.cpp @@ -1011,7 +1011,7 @@ PERF_TEST_P(Sz_Flags, ImgProc_MulSpectrums, TEST_CYCLE() cv::gpu::mulSpectrums(d_a, d_b, dst, flag); - GPU_SANITY_CHECK(dst); + GPU_SANITY_CHECK(dst, 2); } else { @@ -1045,7 +1045,7 @@ PERF_TEST_P(Sz, ImgProc_MulAndScaleSpectrums, TEST_CYCLE() cv::gpu::mulAndScaleSpectrums(d_src1, d_src2, dst, cv::DFT_ROWS, scale, false); - GPU_SANITY_CHECK(dst); + GPU_SANITY_CHECK(dst, 1e-5); } else { diff --git a/modules/gpu/perf/perf_video.cpp b/modules/gpu/perf/perf_video.cpp index 2d33ff9..e71df5a 100644 --- a/modules/gpu/perf/perf_video.cpp +++ b/modules/gpu/perf/perf_video.cpp @@ -340,8 +340,8 @@ PERF_TEST_P(ImagePair_WinSz_Levels_Iters, Video_PyrLKOpticalFlowDense, TEST_CYCLE() d_pyrLK.dense(d_frame0, d_frame1, u, v); - GPU_SANITY_CHECK(u); - GPU_SANITY_CHECK(v); + GPU_SANITY_CHECK(u, 0.5); + GPU_SANITY_CHECK(v, 0.5); } else { -- 2.7.4