From d30564074992ec7be8780e9a781d39de103825c1 Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Wed, 9 Nov 2011 13:18:23 +0000 Subject: [PATCH] minor fix --- modules/core/include/opencv2/core/gpumat.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/core/include/opencv2/core/gpumat.hpp b/modules/core/include/opencv2/core/gpumat.hpp index accfb7c..502655b 100644 --- a/modules/core/include/opencv2/core/gpumat.hpp +++ b/modules/core/include/opencv2/core/gpumat.hpp @@ -173,6 +173,7 @@ namespace cv { namespace gpu template operator DevMem2D_<_Tp>() const; template operator PtrStep_<_Tp>() const; + template operator PtrStep<_Tp>() const; /*! includes several bit-fields: - the magic signature @@ -427,6 +428,11 @@ namespace cv { namespace gpu return PtrStep_(static_cast< DevMem2D_ >(*this)); } + template inline GpuMat::operator PtrStep() const + { + return PtrStep((T*)data, step); + } + inline GpuMat createContinuous(int rows, int cols, int type) { GpuMat m; -- 2.7.4