OpenCV  2.4.13.5
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

§ StreamCallback

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

§ Stream() [1/2]

cv::gpu::Stream::Stream ( )

§ ~Stream()

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

§ Stream() [2/2]

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

Member Function Documentation

§ enqueueConvert()

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

§ enqueueCopy()

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

copy asynchronously

§ enqueueDownload() [1/2]

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

downloads asynchronously

§ enqueueDownload() [2/2]

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

§ enqueueHostCallback()

void cv::gpu::Stream::enqueueHostCallback ( StreamCallback  callback,
void userData 
)

§ enqueueMemSet() [1/2]

void cv::gpu::Stream::enqueueMemSet ( GpuMat src,
Scalar  val 
)

memory set asynchronously

§ enqueueMemSet() [2/2]

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

§ enqueueUpload() [1/2]

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

uploads asynchronously

§ enqueueUpload() [2/2]

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

§ Null()

static Stream& cv::gpu::Stream::Null ( )
static

§ operator bool()

cv::gpu::Stream::operator bool ( ) const

§ operator=()

Stream& cv::gpu::Stream::operator= ( const Stream )

§ queryIfComplete()

bool cv::gpu::Stream::queryIfComplete ( )

§ waitForCompletion()

void cv::gpu::Stream::waitForCompletion ( )

Friends And Related Function Documentation

§ StreamAccessor

friend struct StreamAccessor
friend

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