From: Vladislav Vinogradov Date: Thu, 13 Feb 2014 13:16:43 +0000 (+0400) Subject: increase epsilon for AlphaComp sanity test for integer input X-Git-Tag: accepted/tizen/ivi/20140515.103456~1^2~91^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e69e2a07a9798d75a0949ab2b4ad063dd84e8f2;p=profile%2Fivi%2Fopencv.git increase epsilon for AlphaComp sanity test for integer input --- diff --git a/modules/gpu/perf/perf_imgproc.cpp b/modules/gpu/perf/perf_imgproc.cpp index 1e59829..23db16e 100644 --- a/modules/gpu/perf/perf_imgproc.cpp +++ b/modules/gpu/perf/perf_imgproc.cpp @@ -1563,7 +1563,14 @@ PERF_TEST_P(Sz_Type_Op, ImgProc_AlphaComp, TEST_CYCLE() cv::gpu::alphaComp(d_img1, d_img2, dst, alpha_op); - GPU_SANITY_CHECK(dst, 1e-3, ERROR_RELATIVE); + if (CV_MAT_DEPTH(type) < CV_32F) + { + GPU_SANITY_CHECK(dst, 1); + } + else + { + GPU_SANITY_CHECK(dst, 1e-3, ERROR_RELATIVE); + } } else {