Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of gr-peach-opencv-project-sd-card by
Data Structures
[Core part]
Data Structures | |
class | GpuMat |
Base storage class for GPU memory with reference counting. More... | |
class | HostMem |
Class with reference counting wrapping special memory type allocation functions from CUDA. More... | |
class | Stream |
This class encapsulates a queue of asynchronous calls. More... | |
struct | StreamAccessor |
Class that enables getting cudaStream_t from cuda::Stream. More... | |
struct | EventAccessor |
Class that enables getting cudaEvent_t from cuda::Event. More... | |
Functions | |
CV_EXPORTS void | createContinuous (int rows, int cols, int type, OutputArray arr) |
Creates a continuous matrix. | |
CV_EXPORTS void | 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 void | setBufferPoolUsage (bool on) |
BufferPool management (must be called before Stream creation) | |
CV_EXPORTS void | registerPageLocked (Mat &m) |
Page-locks the memory of matrix and maps it for the device(s). | |
CV_EXPORTS void | unregisterPageLocked (Mat &m) |
Unmaps the memory of matrix and makes it pageable again. |
Function Documentation
void createContinuous | ( | int | rows, |
int | cols, | ||
int | type, | ||
OutputArray | arr | ||
) |
Creates a continuous matrix.
- Parameters:
-
rows Row count. cols Column count. type Type of the matrix. arr Destination matrix. This parameter changes only if it has a proper type and area ( ).
Matrix is called continuous if its elements are stored continuously, that is, without gaps at the end of each row.
Definition at line 270 of file cuda_gpu_mat.cpp.
void 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:
-
rows Minimum desired number of rows. cols Minimum desired number of columns. type Desired matrix type. arr Destination matrix.
The function does not reallocate memory if the matrix has proper attributes already.
Definition at line 324 of file cuda_gpu_mat.cpp.
void registerPageLocked | ( | Mat & | m ) |
Page-locks the memory of matrix and maps it for the device(s).
- Parameters:
-
m Input matrix.
Definition at line 316 of file cuda_host_mem.cpp.
void setBufferPoolUsage | ( | bool | on ) |
BufferPool management (must be called before Stream creation)
BufferPool.
Definition at line 631 of file cuda_stream.cpp.
void unregisterPageLocked | ( | Mat & | m ) |
Unmaps the memory of matrix and makes it pageable again.
- Parameters:
-
m Input matrix.
Definition at line 327 of file cuda_host_mem.cpp.
Generated on Tue Jul 12 2022 14:47:56 by
