\r
template <typename _Tp> operator DevMem2D_<_Tp>() const;\r
template <typename _Tp> operator PtrStep_<_Tp>() const;\r
+ template <typename _Tp> operator PtrStep<_Tp>() const;\r
\r
/*! includes several bit-fields:\r
- the magic signature\r
return PtrStep_<T>(static_cast< DevMem2D_<T> >(*this)); \r
}\r
\r
+ template <class T> inline GpuMat::operator PtrStep<T>() const \r
+ { \r
+ return PtrStep<T>((T*)data, step); \r
+ }\r
+\r
inline GpuMat createContinuous(int rows, int cols, int type)\r
{\r
GpuMat m;\r