From 9e652161081fc9f6da0ddd0f4330f259bbab94b9 Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Fri, 15 Jul 2016 15:11:36 +0300 Subject: [PATCH] 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 4117cc6367..2e0aa9f7b6 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 {