Updated sanity threshold for convertTo perf test
authorAndrey Kamaev <no@email>
Sat, 12 May 2012 15:12:21 +0000 (15:12 +0000)
committerAndrey Kamaev <no@email>
Sat, 12 May 2012 15:12:21 +0000 (15:12 +0000)
modules/core/perf/perf_convertTo.cpp

index ef0bf65..7ba9d36 100644 (file)
@@ -32,5 +32,5 @@ PERF_TEST_P( Size_DepthSrc_DepthDst_Channels_alpha, convertTo,
 \r
     TEST_CYCLE() src.convertTo(dst, depthDst, alpha);\r
 \r
-    SANITY_CHECK(dst, 1e-12);\r
+    SANITY_CHECK(dst, alpha == 1.0 ? 1e-12 : 1e-7);\r
 }\r