OpenCV  3.2.0-dev
Open Source Computer Vision
cv::cudev::GlobPtrSz< T > Struct Template Reference

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

#include "glob.hpp"

Inheritance diagram for cv::cudev::GlobPtrSz< T >:
Collaboration diagram for cv::cudev::GlobPtrSz< T >:

Public Types

typedef int index_type
 
typedef T value_type
 

Public Member Functions

__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
 

Public Attributes

int cols
 
T * data
 
int rows
 
size_t step
 stride between two consecutive rows in bytes. Step is stored always and everywhere in bytes!!! More...
 

Detailed Description

template<typename T>
struct cv::cudev::GlobPtrSz< T >

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.

Member Typedef Documentation

template<typename T>
typedef int cv::cudev::GlobPtr< T >::index_type
inherited
template<typename T>
typedef T cv::cudev::GlobPtr< T >::value_type
inherited

Member Function Documentation

template<typename T>
__device__ __forceinline__ T& cv::cudev::GlobPtr< T >::operator() ( int  y,
int  x 
)
inlineinherited

References cv::cudev::GlobPtr< T >::row().

Here is the call graph for this function:

template<typename T>
__device__ __forceinline__ const T& cv::cudev::GlobPtr< T >::operator() ( int  y,
int  x 
) const
inlineinherited

References cv::cudev::GlobPtr< T >::row().

Here is the call graph for this function:

template<typename T>
__device__ __forceinline__ T* cv::cudev::GlobPtr< T >::row ( int  y)
inlineinherited

Referenced by cv::cudev::GlobPtr< T >::operator()().

Here is the caller graph for this function:

template<typename T>
__device__ __forceinline__ const T* cv::cudev::GlobPtr< T >::row ( int  y) const
inlineinherited

Member Data Documentation

template<typename T>
int cv::cudev::GlobPtrSz< T >::cols
template<typename T>
T* cv::cudev::GlobPtr< T >::data
inherited
template<typename T>
int cv::cudev::GlobPtrSz< T >::rows
template<typename T>
size_t cv::cudev::GlobPtr< T >::step
inherited

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

Referenced by cv::cudev::globPtr(), and cv::cudev::Texture< T >::Texture().


The documentation for this struct was generated from the following file: