Commit d3056407 authored by Vladislav Vinogradov's avatar Vladislav Vinogradov

minor fix

parent fcfa7208
...@@ -173,6 +173,7 @@ namespace cv { namespace gpu ...@@ -173,6 +173,7 @@ namespace cv { namespace gpu
template <typename _Tp> operator DevMem2D_<_Tp>() const; template <typename _Tp> operator DevMem2D_<_Tp>() const;
template <typename _Tp> operator PtrStep_<_Tp>() const; template <typename _Tp> operator PtrStep_<_Tp>() const;
template <typename _Tp> operator PtrStep<_Tp>() const;
/*! includes several bit-fields: /*! includes several bit-fields:
- the magic signature - the magic signature
...@@ -427,6 +428,11 @@ namespace cv { namespace gpu ...@@ -427,6 +428,11 @@ namespace cv { namespace gpu
return PtrStep_<T>(static_cast< DevMem2D_<T> >(*this)); return PtrStep_<T>(static_cast< DevMem2D_<T> >(*this));
} }
template <class T> inline GpuMat::operator PtrStep<T>() const
{
return PtrStep<T>((T*)data, step);
}
inline GpuMat createContinuous(int rows, int cols, int type) inline GpuMat createContinuous(int rows, int cols, int type)
{ {
GpuMat m; GpuMat m;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment