increase epsilon for AlphaComp sanity test for integer input
authorVladislav Vinogradov <vlad.vinogradov@itseez.com>
Thu, 13 Feb 2014 13:16:43 +0000 (17:16 +0400)
committerVladislav Vinogradov <vlad.vinogradov@itseez.com>
Thu, 13 Feb 2014 13:16:43 +0000 (17:16 +0400)
modules/gpu/perf/perf_imgproc.cpp

index 1e59829..23db16e 100644 (file)
@@ -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
     {