From 3a5e036feb67f774b4342905c7d2ecce412cf7f5 Mon Sep 17 00:00:00 2001 From: Vitaly Tuzov Date: Mon, 29 May 2017 16:47:41 +0300 Subject: [PATCH] Updated fix for accumulate performance test in case of multiple iterations --- modules/imgproc/perf/perf_accumulate.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/imgproc/perf/perf_accumulate.cpp b/modules/imgproc/perf/perf_accumulate.cpp index 6f93429fa6..fc3ac7f54a 100644 --- a/modules/imgproc/perf/perf_accumulate.cpp +++ b/modules/imgproc/perf/perf_accumulate.cpp @@ -30,9 +30,9 @@ PERF_TEST_P( Size_MatType, Accumulate, declare.time(100); declare.in(src, WARMUP_RNG).out(dst); - TEST_CYCLE() { dst.setTo(cv::Scalar::all(0)); accumulate(src, dst); } + TEST_CYCLE() accumulate(src, dst); - SANITY_CHECK(dst); + SANITY_CHECK_NOTHING(); } #ifdef HAVE_OPENVX @@ -60,9 +60,9 @@ PERF_TEST_P( Size_MatType, AccumulateSquare, declare.time(100); declare.in(src, WARMUP_RNG).out(dst); - TEST_CYCLE() { dst.setTo(cv::Scalar::all(0)); accumulateSquare(src, dst); } + TEST_CYCLE() accumulateSquare(src, dst); - SANITY_CHECK(dst); + SANITY_CHECK_NOTHING(); } #ifdef HAVE_OPENVX @@ -90,7 +90,7 @@ PERF_TEST_P( Size_MatType, AccumulateWeighted, declare.time(100); declare.in(src, WARMUP_RNG).out(dst); - TEST_CYCLE() { dst.setTo(cv::Scalar::all(0)); accumulateWeighted(src, dst, 0.314); } + TEST_CYCLE() accumulateWeighted(src, dst, 0.314); - SANITY_CHECK(dst); + SANITY_CHECK_NOTHING(); }