From 3ec3c5919785b4d27655aff2a21e177f7aeda28d Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Sat, 12 May 2012 15:12:21 +0000 Subject: [PATCH] Updated sanity threshold for convertTo perf test --- modules/core/perf/perf_convertTo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/perf/perf_convertTo.cpp b/modules/core/perf/perf_convertTo.cpp index ef0bf6545..7ba9d367b 100644 --- a/modules/core/perf/perf_convertTo.cpp +++ b/modules/core/perf/perf_convertTo.cpp @@ -32,5 +32,5 @@ PERF_TEST_P( Size_DepthSrc_DepthDst_Channels_alpha, convertTo, TEST_CYCLE() src.convertTo(dst, depthDst, alpha); - SANITY_CHECK(dst, 1e-12); + SANITY_CHECK(dst, alpha == 1.0 ? 1e-12 : 1e-7); }