OpenCV  4.0.0-pre
Open Source Computer Vision
Looking for a C++ dev who knows OpenCV?
I'm looking for work. Hire me!
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__ Toperator() (int y, int x)
 
__device__ __forceinline__ const Toperator() (int y, int x) const
 
__device__ __forceinline__ Trow (int y)
 
__device__ __forceinline__ const Trow (int y) const
 

Public Attributes

int cols
 
Tdata
 
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

◆ index_type

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

◆ value_type

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

Member Function Documentation

◆ operator()() [1/2]

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:

◆ operator()() [2/2]

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:

◆ row() [1/2]

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:

◆ row() [2/2]

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

Member Data Documentation

◆ cols

template<typename T>
int cv::cudev::GlobPtrSz< T >::cols

◆ data

template<typename T>
T* cv::cudev::GlobPtr< T >::data
inherited

◆ rows

template<typename T>
int cv::cudev::GlobPtrSz< T >::rows

◆ step

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: