OpenCV  3.1.0
Open Source Computer Vision
Classes | Enumerations | Functions

Classes

class  cv::cuda::GpuMat::Allocator
 
class  cv::cuda::Event
 
struct  cv::cuda::EventAccessor
 Class that enables getting cudaEvent_t from cuda::Event. More...
 
class  cv::cuda::GpuMat
 Base storage class for GPU memory with reference counting. More...
 
class  cv::cuda::HostMem
 Class with reference counting wrapping special memory type allocation functions from CUDA. More...
 
class  cv::cuda::Stream
 This class encapsulates a queue of asynchronous calls. More...
 
struct  cv::cuda::StreamAccessor
 Class that enables getting cudaStream_t from cuda::Stream. More...
 

Enumerations

enum  cv::cuda::HostMem::AllocType {
  cv::cuda::HostMem::PAGE_LOCKED = 1,
  cv::cuda::HostMem::SHARED = 2,
  cv::cuda::HostMem::WRITE_COMBINED = 4
}
 
enum  cv::cuda::Event::CreateFlags {
  cv::cuda::Event::DEFAULT = 0x00,
  cv::cuda::Event::BLOCKING_SYNC = 0x01,
  cv::cuda::Event::DISABLE_TIMING = 0x02,
  cv::cuda::Event::INTERPROCESS = 0x04
}
 

Functions

void cv::cuda::createContinuous (int rows, int cols, int type, OutputArray arr)
 Creates a continuous matrix. More...
 
void cv::cuda::ensureSizeIsEnough (int rows, int cols, int type, OutputArray arr)
 Ensures that the size of a matrix is big enough and the matrix has a proper type. More...
 
void cv::cuda::registerPageLocked (Mat &m)
 Page-locks the memory of matrix and maps it for the device(s). More...
 
void cv::cuda::setBufferPoolConfig (int deviceId, size_t stackSize, int stackCount)
 
void cv::cuda::setBufferPoolUsage (bool on)
 BufferPool management (must be called before Stream creation) More...
 
void cv::cuda::unregisterPageLocked (Mat &m)
 Unmaps the memory of matrix and makes it pageable again. More...
 

Detailed Description

Enumeration Type Documentation

Enumerator
PAGE_LOCKED 
SHARED 
WRITE_COMBINED 
Enumerator
DEFAULT 

Default event flag

BLOCKING_SYNC 

Event uses blocking synchronization

DISABLE_TIMING 

Event will not record timing data

INTERPROCESS 

Event is suitable for interprocess use. DisableTiming must be set

Function Documentation

void cv::cuda::createContinuous ( int  rows,
int  cols,
int  type,
OutputArray  arr 
)

Creates a continuous matrix.

Parameters
rowsRow count.
colsColumn count.
typeType of the matrix.
arrDestination matrix. This parameter changes only if it has a proper type and area ( \(\texttt{rows} \times \texttt{cols}\) ).

Matrix is called continuous if its elements are stored continuously, that is, without gaps at the end of each row.

void cv::cuda::ensureSizeIsEnough ( int  rows,
int  cols,
int  type,
OutputArray  arr 
)

Ensures that the size of a matrix is big enough and the matrix has a proper type.

Parameters
rowsMinimum desired number of rows.
colsMinimum desired number of columns.
typeDesired matrix type.
arrDestination matrix.

The function does not reallocate memory if the matrix has proper attributes already.

void cv::cuda::registerPageLocked ( Mat m)

Page-locks the memory of matrix and maps it for the device(s).

Parameters
mInput matrix.
void cv::cuda::setBufferPoolConfig ( int  deviceId,
size_t  stackSize,
int  stackCount 
)
void cv::cuda::setBufferPoolUsage ( bool  on)

BufferPool management (must be called before Stream creation)

void cv::cuda::unregisterPageLocked ( Mat m)

Unmaps the memory of matrix and makes it pageable again.

Parameters
mInput matrix.