diff --git a/modules/core/perf/perf_convertTo.cpp b/modules/core/perf/perf_convertTo.cpp index ef0bf65458..7ba9d367b2 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); }