minor fix
authorVladislav Vinogradov <no@email>
Wed, 9 Nov 2011 13:18:23 +0000 (13:18 +0000)
committerVladislav Vinogradov <no@email>
Wed, 9 Nov 2011 13:18:23 +0000 (13:18 +0000)
modules/core/include/opencv2/core/gpumat.hpp

index accfb7c..502655b 100644 (file)
@@ -173,6 +173,7 @@ namespace cv { namespace gpu
 \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
@@ -427,6 +428,11 @@ namespace cv { namespace gpu
         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