1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

Merge branch '4.x' into '5.x'

This commit is contained in:
Maksim Shabunin
2024-06-11 19:38:59 +03:00
573 changed files with 72922 additions and 7355 deletions
+30
View File
@@ -375,6 +375,36 @@ OCL_PERF_TEST_P(FlipFixture, Flip,
SANITY_CHECK(dst);
}
///////////// Rotate ////////////////////////
enum
{
ROTATE_90_CLOCKWISE = 0, ROTATE_180, ROTATE_90_COUNTERCLOCKWISE
};
CV_ENUM(RotateType, ROTATE_90_CLOCKWISE, ROTATE_180, ROTATE_90_COUNTERCLOCKWISE)
typedef tuple<Size, MatType, RotateType> RotateParams;
typedef TestBaseWithParam<RotateParams> RotateFixture;
OCL_PERF_TEST_P(RotateFixture, rotate,
::testing::Combine(OCL_TEST_SIZES, OCL_TEST_TYPES, RotateType::all()))
{
const RotateParams params = GetParam();
const Size srcSize = get<0>(params);
const int type = get<1>(params);
const int rotateCode = get<2>(params);
checkDeviceMaxMemoryAllocSize(srcSize, type);
UMat src(srcSize, type), dst(srcSize, type);
declare.in(src, WARMUP_RNG).out(dst);
OCL_TEST_CYCLE() cv::rotate(src, dst, rotateCode);
SANITY_CHECK_NOTHING();
}
///////////// minMaxLoc ////////////////////////
typedef Size_MatType MinMaxLocFixture;