From 7590813b693e94ca608185320bde1493ccc0abfc Mon Sep 17 00:00:00 2001 From: Rostislav Vasilikhin Date: Fri, 6 Sep 2024 07:26:00 +0200 Subject: [PATCH] Merge pull request #26115 from savuor:rv/flip_ocl_dtypes Added more data types to OCL flip() and rotate() perf tests #26115 Connected PR with updated sanity data: https://github.com/opencv/opencv_extra/pull/1206 ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [ ] There is a reference to the original bug report and related work - [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [x] The feature is well documented and sample code can be built with the project CMake --- modules/core/perf/opencl/perf_arithm.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/core/perf/opencl/perf_arithm.cpp b/modules/core/perf/opencl/perf_arithm.cpp index cb14aa92b1..42f5244b7f 100644 --- a/modules/core/perf/opencl/perf_arithm.cpp +++ b/modules/core/perf/opencl/perf_arithm.cpp @@ -357,7 +357,8 @@ typedef TestBaseWithParam FlipFixture; OCL_PERF_TEST_P(FlipFixture, Flip, ::testing::Combine(OCL_TEST_SIZES, - OCL_TEST_TYPES, FlipType::all())) + ::testing::Values(CV_8UC1, CV_8UC3, CV_8UC4, CV_16UC1, CV_32FC1, CV_32FC4), + FlipType::all())) { const FlipParams params = GetParam(); const Size srcSize = get<0>(params); @@ -387,7 +388,9 @@ typedef tuple RotateParams; typedef TestBaseWithParam RotateFixture; OCL_PERF_TEST_P(RotateFixture, rotate, - ::testing::Combine(OCL_TEST_SIZES, OCL_TEST_TYPES, RotateType::all())) + ::testing::Combine(OCL_TEST_SIZES, + ::testing::Values(CV_8UC1, CV_8UC2, CV_8UC4, CV_32FC1, CV_32FC4), + RotateType::all())) { const RotateParams params = GetParam(); const Size srcSize = get<0>(params);