minor fix

This commit is contained in:
Vladislav Vinogradov
2011-11-09 13:18:23 +00:00
parent fcfa72081e
commit d305640749

View File

@@ -173,6 +173,7 @@ namespace cv { namespace gpu
template <typename _Tp> operator DevMem2D_<_Tp>() const;
template <typename _Tp> operator PtrStep_<_Tp>() const;
template <typename _Tp> operator PtrStep<_Tp>() const;
/*! includes several bit-fields:
- the magic signature
@@ -427,6 +428,11 @@ namespace cv { namespace gpu
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)
{
GpuMat m;