From bdc6c8bb5a988fe915d0619593f678cf4058fa7e Mon Sep 17 00:00:00 2001 From: Mark Horvath Date: Fri, 30 May 2025 14:28:44 +0000 Subject: [PATCH] Update the OpenCV patch about extra benchmarks Benchmarks added for Gaussian blur 21x21 and Medan blur benchmarks are extended. --- .../opencv/extra_benchmarks/opencv-4.11.patch | 38 ++++++++++++++++++- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/adapters/opencv/extra_benchmarks/opencv-4.11.patch b/adapters/opencv/extra_benchmarks/opencv-4.11.patch index a5c71df6c..c3b7c43bf 100644 --- a/adapters/opencv/extra_benchmarks/opencv-4.11.patch +++ b/adapters/opencv/extra_benchmarks/opencv-4.11.patch @@ -294,9 +294,21 @@ index 0000000000..7c6a4afaf2 + +} // namespace diff --git a/modules/imgproc/perf/perf_blur.cpp b/modules/imgproc/perf/perf_blur.cpp -index a0904156a0..8095b59fe1 100644 +index a0904156a0..1ff656a71b 100644 --- a/modules/imgproc/perf/perf_blur.cpp +++ b/modules/imgproc/perf/perf_blur.cpp +@@ -10,9 +10,9 @@ typedef perf::TestBaseWithParam Size_MatType_kSize; + + PERF_TEST_P(Size_MatType_kSize, medianBlur, + testing::Combine( +- testing::Values(szODD, szQVGA, szVGA, sz720p), ++ testing::Values(szODD, szQVGA, szVGA, sz720p, sz1080p, sz2160p), + testing::Values(CV_8UC1, CV_8UC4, CV_16UC1, CV_16SC1, CV_32FC1), +- testing::Values(3, 5) ++ testing::Values(3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35) + ) + ) + { @@ -35,6 +35,7 @@ PERF_TEST_P(Size_MatType_kSize, medianBlur, CV_ENUM(BorderType3x3, BORDER_REPLICATE, BORDER_CONSTANT) @@ -357,7 +369,7 @@ index a0904156a0..8095b59fe1 100644 testing::Values(CV_8UC1, CV_8UC4, CV_16UC1, CV_16SC1, CV_32FC1), BorderType::all() ) -@@ -218,6 +243,116 @@ PERF_TEST_P(Size_MatType_BorderType, gaussianBlur5x5, +@@ -218,6 +243,138 @@ PERF_TEST_P(Size_MatType_BorderType, gaussianBlur5x5, SANITY_CHECK(dst, 1); } @@ -470,6 +482,28 @@ index a0904156a0..8095b59fe1 100644 + + SANITY_CHECK(dst, 1); +} ++ ++PERF_TEST_P(Size_MatType_BorderTypeKleidiCV, gaussianBlur21x21_CustomSigma, ++ testing::Combine( ++ testing::Values(sz1080p, sz2160p), ++ testing::Values(CV_8UC1, CV_8UC4), ++ BorderTypeKleidiCV::all() ++ ) ++ ) ++{ ++Size size = get<0>(GetParam()); ++int type = get<1>(GetParam()); ++BorderTypeKleidiCV btype = get<2>(GetParam()); ++ ++Mat src(size, type); ++Mat dst(size, type); ++ ++declare.in(src, WARMUP_RNG).out(dst); ++ ++TEST_CYCLE() GaussianBlur(src, dst, Size(21,21), 2.2, 2.2, btype); ++ ++SANITY_CHECK(dst, 1); ++} + PERF_TEST_P(Size_MatType_BorderType, blur5x5, testing::Combine( -- GitLab