class cv::cuda::BufferPool
Overview
BufferPool for use with CUDA streams. More…
#include <cuda.hpp> class BufferPool { public: // construction BufferPool(Stream& stream); // methods Ptr<GpuMat::Allocator> getAllocator() const; GpuMat getBuffer( int rows, int cols, int type ); GpuMat getBuffer( Size size, int type ); };
Detailed Documentation
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.