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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user