Fixed a minor bug in PtrElemStep::ptr

This commit is contained in:
Anatoly Baksheev
2010-11-01 12:48:47 +00:00
parent 074ba3ed93
commit 4ea811c568
2 changed files with 3 additions and 1 deletions

View File

@@ -105,6 +105,8 @@ namespace cv
{
this->step /= PtrStep_<T>::elem_size;
}
__CV_GPU_HOST_DEVICE__ T* ptr(int y = 0) { return data + y * step); }
__CV_GPU_HOST_DEVICE__ const T* ptr(int y = 0) const { return data + y * step; }
private:
StaticCheck<256 % sizeof(T) == 0> ElemStepTypeCheck;
};