OpenCV453
クラス | 関数

クラス

class  cv::cuda::GpuMat
 Base storage class for GPU memory with reference counting. [詳解]
 
struct  cv::cuda::GpuData
 
class  cv::cuda::GpuMatND
 
class  cv::cuda::BufferPool
 BufferPool for use with CUDA streams [詳解]
 
class  cv::cuda::HostMem
 Class with reference counting wrapping special memory type allocation functions from CUDA. [詳解]
 
class  cv::cuda::Stream
 This class encapsulates a queue of asynchronous calls. [詳解]
 
class  cv::cuda::Event
 
struct  cv::cuda::StreamAccessor
 Class that enables getting cudaStream_t from cuda::Stream [詳解]
 
struct  cv::cuda::EventAccessor
 Class that enables getting cudaEvent_t from cuda::Event [詳解]
 

関数

CV_EXPORTS_W void cv::cuda::createContinuous (int rows, int cols, int type, OutputArray arr)
 Creates a continuous matrix. [詳解]
 
CV_EXPORTS_W 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. [詳解]
 
CV_EXPORTS_W void cv::cuda::setBufferPoolUsage (bool on)
 BufferPool management (must be called before Stream creation)
 
CV_EXPORTS_W void cv::cuda::setBufferPoolConfig (int deviceId, size_t stackSize, int stackCount)
 
CV_EXPORTS_W void cv::cuda::registerPageLocked (Mat &m)
 Page-locks the memory of matrix and maps it for the device(s). [詳解]
 
CV_EXPORTS_W void cv::cuda::unregisterPageLocked (Mat &m)
 Unmaps the memory of matrix and makes it pageable again. [詳解]
 

詳解

関数詳解

◆ createContinuous()

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

Creates a continuous matrix.

引数
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.

◆ ensureSizeIsEnough()

CV_EXPORTS_W 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.

引数
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.

◆ registerPageLocked()

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

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

引数
mInput matrix.

◆ unregisterPageLocked()

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

Unmaps the memory of matrix and makes it pageable again.

引数
mInput matrix.