template struct cv::cudev::GlobPtr

Overview

Structure similar to cv::cudev::GlobPtrSz but containing only a pointer and row step. Moreā€¦

#include <glob.hpp>

template <typename T>
struct GlobPtr
{
    // 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;
};

// direct descendants

template <typename T>
struct GlobPtrSz;

Detailed Documentation

Structure similar to cv::cudev::GlobPtrSz but containing only a pointer and row step.

Width and height fields are excluded due to performance reasons. The structure is intended for internal use or for users who write device code.

Fields

size_t step

stride between two consecutive rows in bytes. Step is stored always and everywhere in bytes!!!