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:
@@ -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