1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-19 19:44:14 +08:00

Port opencv/#17863

This commit is contained in:
Namgoo Lee
2020-07-22 16:27:24 +09:00
parent 5fae4082cc
commit 3ba40a5316
2 changed files with 56 additions and 1 deletions

View File

@@ -279,6 +279,19 @@ CUDA_TEST_P(Flip, Accuracy)
EXPECT_MAT_NEAR(dst_gold, dst, 0.0);
}
CUDA_TEST_P(Flip, AccuracyInplace)
{
cv::Mat src = randomMat(size, type);
cv::cuda::GpuMat srcDst = loadMat(src, useRoi);
cv::cuda::flip(srcDst, srcDst, flip_code);
cv::Mat dst_gold;
cv::flip(src, dst_gold, flip_code);
EXPECT_MAT_NEAR(dst_gold, srcDst, 0.0);
}
INSTANTIATE_TEST_CASE_P(CUDA_Arithm, Flip, testing::Combine(
ALL_DEVICES,
DIFFERENT_SIZES,