mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
Merge pull request #8832 from terfendail:perf_accumulate_fix
This commit is contained in:
commit
9b902adea6
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user