template struct cv::cudev::GlobPtrSz

Overview

Lightweight class encapsulating pitched memory on a GPU and passed to nvcc-compiled code (CUDA kernels). Moreā€¦

#include <glob.hpp>

template <typename T>
struct GlobPtrSz: public cv::cudev::GlobPtr
{
    // fields

    int cols;
    int rows;
};

Inherited Members

public:
    // typedefs

    typedef int index_type;
    typedef T value_type;

    // fields

    T* data;
    size_t step;

    // methods

    __device__ __forceinline__ T&
    operator()(
        int y,
        int x
        );

    __device__ __forceinline__ const T&
    operator()(
        int y,
        int x
        ) const;

    __device__ __forceinline__ T*
    row(int y);

    __device__ __forceinline__ const T*
    row(int y) const;

Detailed Documentation

Lightweight class encapsulating pitched memory on a GPU and passed to nvcc-compiled code (CUDA kernels).

Typically, it is used internally by OpenCV and by users who write device code. You can call its members from both host and device code.