1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

use only even number for inplace flip

This commit is contained in:
Tomoaki Teshima
2020-09-16 15:45:03 +09:00
parent 29aeebf5bc
commit a61546680b
2 changed files with 5 additions and 1 deletions
+2
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);