From: Daniil Osokin Date: Fri, 10 Aug 2012 11:45:18 +0000 (+0400) Subject: Added blur16x16 perf test X-Git-Tag: accepted/2.0/20130307.220821~364^2~260 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0609f4e9b49d07afe59c0aed6b19be34a0c8697c;p=profile%2Fivi%2Fopencv.git Added blur16x16 perf test --- diff --git a/modules/imgproc/perf/perf_blur.cpp b/modules/imgproc/perf/perf_blur.cpp index 4bb778f..36519f3 100644 --- a/modules/imgproc/perf/perf_blur.cpp +++ b/modules/imgproc/perf/perf_blur.cpp @@ -92,6 +92,28 @@ PERF_TEST_P(Size_MatType_BorderType3x3, blur3x3, SANITY_CHECK(dst, 1e-3); } +PERF_TEST_P(Size_MatType_BorderType, blur16x16, + testing::Combine( + testing::Values(szODD, szQVGA, szVGA, sz720p), + testing::Values(CV_8UC1, CV_8UC4, CV_16UC1, CV_16SC1, CV_32FC1), + testing::ValuesIn(BorderType::all()) + ) + ) +{ + Size size = get<0>(GetParam()); + int type = get<1>(GetParam()); + BorderType btype = get<2>(GetParam()); + + Mat src(size, type); + Mat dst(size, type); + + declare.in(src, WARMUP_RNG).out(dst); + + TEST_CYCLE() blur(src, dst, Size(16,16), Point(-1,-1), btype); + + SANITY_CHECK(dst, 1e-3); +} + PERF_TEST_P(Size_MatType_BorderType3x3, box3x3, testing::Combine( testing::Values(szODD, szQVGA, szVGA, sz720p),