OpenCV
3.3.0
Open Source Computer Vision
|
BufferPool for use with CUDA streams. More...
#include "cuda.hpp"
Public Member Functions | |
BufferPool (Stream &stream) | |
Gets the BufferPool for the given stream. More... | |
Ptr< GpuMat::Allocator > | getAllocator () const |
Returns the allocator associated with the stream. More... | |
GpuMat | getBuffer (int rows, int cols, int type) |
Allocates a new GpuMat of given size and type. More... | |
GpuMat | getBuffer (Size size, int type) |
Allocates a new GpuMat of given size and type. More... | |
BufferPool for use with CUDA streams.
BufferPool utilizes cuda::Stream's allocator to create new buffers. It is particularly useful when BufferPoolUsage is set to true, or a custom allocator is specified for the cuda::Stream, and you want to implement your own stream based functions utilizing the same underlying GPU memory management.
|
explicit |
Gets the BufferPool for the given stream.
|
inline |
Returns the allocator associated with the stream.
GpuMat cv::cuda::BufferPool::getBuffer | ( | int | rows, |
int | cols, | ||
int | type | ||
) |
Allocates a new GpuMat of given size and type.
Allocates a new GpuMat of given size and type.