OpenCV  2.4.13
Open Source Computer Vision
cv::gpu::Stream Class Reference

#include <gpu.hpp>

Public Types

typedef void(* StreamCallback) (Stream &stream, int status, void *userData)
 adds a callback to be called on the host after all currently enqueued items in the stream have completed More...
 

Public Member Functions

 Stream ()
 
 ~Stream ()
 
 Stream (const Stream &)
 
Streamoperator= (const Stream &)
 
bool queryIfComplete ()
 
void waitForCompletion ()
 
void enqueueDownload (const GpuMat &src, CudaMem &dst)
 downloads asynchronously More...
 
void enqueueDownload (const GpuMat &src, Mat &dst)
 
void enqueueUpload (const CudaMem &src, GpuMat &dst)
 uploads asynchronously More...
 
void enqueueUpload (const Mat &src, GpuMat &dst)
 
void enqueueCopy (const GpuMat &src, GpuMat &dst)
 copy asynchronously More...
 
void enqueueMemSet (GpuMat &src, Scalar val)
 memory set asynchronously More...
 
void enqueueMemSet (GpuMat &src, Scalar val, const GpuMat &mask)
 
void enqueueConvert (const GpuMat &src, GpuMat &dst, int dtype, double a=1, double b=0)
 converts matrix type, ex from float to uchar depending on type More...
 
void enqueueHostCallback (StreamCallback callback, void *userData)
 
 operator bool () const
 

Static Public Member Functions

static StreamNull ()
 

Friends

struct StreamAccessor
 

Member Typedef Documentation

typedef void(* cv::gpu::Stream::StreamCallback) (Stream &stream, int status, void *userData)

adds a callback to be called on the host after all currently enqueued items in the stream have completed

Constructor & Destructor Documentation

cv::gpu::Stream::Stream ( )
cv::gpu::Stream::~Stream ( )
cv::gpu::Stream::Stream ( const Stream )

Member Function Documentation

void cv::gpu::Stream::enqueueConvert ( const GpuMat src,
GpuMat dst,
int  dtype,
double  a = 1,
double  b = 0 
)

converts matrix type, ex from float to uchar depending on type

void cv::gpu::Stream::enqueueCopy ( const GpuMat src,
GpuMat dst 
)

copy asynchronously

void cv::gpu::Stream::enqueueDownload ( const GpuMat src,
CudaMem dst 
)

downloads asynchronously

void cv::gpu::Stream::enqueueDownload ( const GpuMat src,
Mat dst 
)
void cv::gpu::Stream::enqueueHostCallback ( StreamCallback  callback,
void userData 
)
void cv::gpu::Stream::enqueueMemSet ( GpuMat src,
Scalar  val 
)

memory set asynchronously

void cv::gpu::Stream::enqueueMemSet ( GpuMat src,
Scalar  val,
const GpuMat mask 
)
void cv::gpu::Stream::enqueueUpload ( const CudaMem src,
GpuMat dst 
)

uploads asynchronously

void cv::gpu::Stream::enqueueUpload ( const Mat src,
GpuMat dst 
)
static Stream& cv::gpu::Stream::Null ( )
static
cv::gpu::Stream::operator bool ( ) const
Stream& cv::gpu::Stream::operator= ( const Stream )
bool cv::gpu::Stream::queryIfComplete ( )
void cv::gpu::Stream::waitForCompletion ( )

Friends And Related Function Documentation

friend struct StreamAccessor
friend

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