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

[moved from opencv] use only even number for inplace flip

original commit: a61546680b
This commit is contained in:
Tomoaki Teshima
2020-09-16 15:45:03 +09:00
parent b267fc3d1d
commit 2ae9011019
2 changed files with 5 additions and 1 deletions

View File

@@ -281,6 +281,8 @@ CUDA_TEST_P(Flip, Accuracy)
CUDA_TEST_P(Flip, AccuracyInplace)
{
size.width = (size.width >> 1) << 1; // in-place version only accepts even number
size.height = (size.height >> 1) << 1; // in-place version only accepts even number
cv::Mat src = randomMat(size, type);
cv::cuda::GpuMat srcDst = loadMat(src, useRoi);