diff --git a/modules/cudafilters/src/filtering.cpp b/modules/cudafilters/src/filtering.cpp index 764e6f6309..daab3acde1 100644 --- a/modules/cudafilters/src/filtering.cpp +++ b/modules/cudafilters/src/filtering.cpp @@ -281,7 +281,7 @@ namespace Size wholeSize; src.locateROI(wholeSize, ofs); - GpuMat srcWhole(wholeSize, src.type(), src.datastart); + GpuMat srcWhole(wholeSize, src.type(), src.datastart, src.step); func_(srcWhole, ofs.x, ofs.y, dst, kernel_.ptr(), kernel_.cols, kernel_.rows, anchor_.x, anchor_.y,