[opencv] 28/71: set threshold to 1 in sanity test for GPU rotate on 8UC1

Nobuhiro Iwamatsu iwamatsu at moszumanska.debian.org
Mon Oct 17 20:16:25 UTC 2016


This is an automated email from the git hooks/post-receive script.

iwamatsu pushed a commit to annotated tag 2.4.13.1
in repository opencv.

commit 9e652161081fc9f6da0ddd0f4330f259bbab94b9
Author: Vladislav Vinogradov <vlad.vinogradov at itseez.com>
Date:   Fri Jul 15 15:11:36 2016 +0300

    set threshold to 1 in sanity test for GPU rotate on 8UC1
    
    to fix difference with CUDA 8.0 results
---
 modules/gpu/perf/perf_imgproc.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/gpu/perf/perf_imgproc.cpp b/modules/gpu/perf/perf_imgproc.cpp
index 4117cc6..2e0aa9f 100644
--- a/modules/gpu/perf/perf_imgproc.cpp
+++ b/modules/gpu/perf/perf_imgproc.cpp
@@ -1373,7 +1373,10 @@ PERF_TEST_P(Sz_Depth_Cn_Inter, ImgProc_Rotate,
 
         TEST_CYCLE() cv::gpu::rotate(d_src, dst, size, 30.0, 0, 0, interpolation);
 
-        GPU_SANITY_CHECK(dst, 1e-3, ERROR_RELATIVE);
+        if (depth == CV_8U)
+            GPU_SANITY_CHECK(dst, 1);
+        else
+            GPU_SANITY_CHECK(dst, 1e-3, ERROR_RELATIVE);
     }
     else
     {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git



More information about the debian-science-commits mailing list