Nearly all of the internal CUDA code is passed a GpuMat
which is implicitly converted to a PtrStep
or PtrStepSz
because of
template <typename _Tp> operator PtrStepSz<_Tp>() const;
See resize for an example. The kernel is passed a PtrStepSz
for dst
template <class Ptr2D, typename T> __global__ void resize(Ptr2D src, PtrStepSz<T> dst, const float fy, const float fx)
but is orginally called with a GpuMat