OpenCV  3.3.0
Open Source Computer Vision
Public Member Functions | List of all members

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::AllocatorgetAllocator () 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

§ BufferPool()

cv::cuda::BufferPool::BufferPool ( Stream stream)
explicit

Gets the BufferPool for the given stream.

Member Function Documentation

§ getAllocator()

Ptr<GpuMat::Allocator> cv::cuda::BufferPool::getAllocator ( ) const
inline

Returns the allocator associated with the stream.

§ getBuffer() [1/2]

GpuMat cv::cuda::BufferPool::getBuffer ( int  rows,
int  cols,
int  type 
)

Allocates a new GpuMat of given size and type.

§ getBuffer() [2/2]

GpuMat cv::cuda::BufferPool::getBuffer ( Size  size,
int  type 
)
inline

Allocates a new GpuMat of given size and type.


The documentation for this class was generated from the following file: