Commit 01f773b8 authored by Vitaly Tuzov's avatar Vitaly Tuzov

Fix for accumulate performance test in case of multiple iterations

parent fe4555ec
...@@ -30,7 +30,7 @@ PERF_TEST_P( Size_MatType, Accumulate, ...@@ -30,7 +30,7 @@ PERF_TEST_P( Size_MatType, Accumulate,
declare.time(100); declare.time(100);
declare.in(src, WARMUP_RNG).out(dst); declare.in(src, WARMUP_RNG).out(dst);
TEST_CYCLE() accumulate(src, dst); TEST_CYCLE() { dst.setTo(cv::Scalar::all(0)); accumulate(src, dst); }
SANITY_CHECK(dst); SANITY_CHECK(dst);
} }
...@@ -60,7 +60,7 @@ PERF_TEST_P( Size_MatType, AccumulateSquare, ...@@ -60,7 +60,7 @@ PERF_TEST_P( Size_MatType, AccumulateSquare,
declare.time(100); declare.time(100);
declare.in(src, WARMUP_RNG).out(dst); declare.in(src, WARMUP_RNG).out(dst);
TEST_CYCLE() accumulateSquare(src, dst); TEST_CYCLE() { dst.setTo(cv::Scalar::all(0)); accumulateSquare(src, dst); }
SANITY_CHECK(dst); SANITY_CHECK(dst);
} }
...@@ -90,7 +90,7 @@ PERF_TEST_P( Size_MatType, AccumulateWeighted, ...@@ -90,7 +90,7 @@ PERF_TEST_P( Size_MatType, AccumulateWeighted,
declare.time(100); declare.time(100);
declare.in(src, WARMUP_RNG).out(dst); declare.in(src, WARMUP_RNG).out(dst);
TEST_CYCLE() accumulateWeighted(src, dst, 0.314); TEST_CYCLE() { dst.setTo(cv::Scalar::all(0)); accumulateWeighted(src, dst, 0.314); }
SANITY_CHECK(dst); SANITY_CHECK(dst);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment