C# Class OpenCvSharp.Gpu.Stream

Encapculates Cuda Stream. Provides interface for async coping.
Inheritance: OpenCvSharp.Gpu.DisposableGpuObject
Mostrar archivo Open project: shimat/opencvsharp

Public Methods

Method Description
EnqueueConvert ( GpuMat src, GpuMat dst, int dtype, double a = 1, double b ) : void

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

EnqueueCopy ( GpuMat src, GpuMat dst ) : void

Copy asynchronously

EnqueueDownload ( GpuMat src, Mat dst ) : void

Downloads asynchronously. Warning! cv::Mat must point to page locked memory (i.e. to CudaMem data or to its subMat)

EnqueueHostCallback ( StreamCallback callback, object userData = null ) : void

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

EnqueueMemSet ( GpuMat src, Scalar val ) : void

Memory set asynchronously

EnqueueMemSet ( GpuMat src, Scalar val, GpuMat mask ) : void

Memory set asynchronously

EnqueueUpload ( Mat src, GpuMat dst ) : void

Uploads asynchronously. Warning! cv::Mat must point to page locked memory (i.e. to CudaMem data or to its ROI)

QueryIfComplete ( ) : bool

Release ( ) : void

Clean up any resources being used.

Stream ( ) : System

Creates empty Stream

Stream ( IntPtr ptr ) : System

Creates from native cv::gpu::Stream* pointer

Stream ( Stream m ) : System

WaitForCompletion ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool /// If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. /// If false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed. ///
return void

EnqueueConvert() public method

converts matrix type, ex from float to uchar depending on type
public EnqueueConvert ( GpuMat src, GpuMat dst, int dtype, double a = 1, double b ) : void
src GpuMat
dst GpuMat
dtype int
a double
b double
return void

EnqueueCopy() public method

Copy asynchronously
public EnqueueCopy ( GpuMat src, GpuMat dst ) : void
src GpuMat
dst GpuMat
return void

EnqueueDownload() public method

Downloads asynchronously. Warning! cv::Mat must point to page locked memory (i.e. to CudaMem data or to its subMat)
public EnqueueDownload ( GpuMat src, Mat dst ) : void
src GpuMat
dst Mat
return void

EnqueueHostCallback() public method

Adds a callback to be called on the host after all currently enqueued items in the stream have completed
public EnqueueHostCallback ( StreamCallback callback, object userData = null ) : void
callback StreamCallback
userData object Not supported
return void

EnqueueMemSet() public method

Memory set asynchronously
public EnqueueMemSet ( GpuMat src, Scalar val ) : void
src GpuMat
val Scalar
return void

EnqueueMemSet() public method

Memory set asynchronously
public EnqueueMemSet ( GpuMat src, Scalar val, GpuMat mask ) : void
src GpuMat
val Scalar
mask GpuMat
return void

EnqueueUpload() public method

Uploads asynchronously. Warning! cv::Mat must point to page locked memory (i.e. to CudaMem data or to its ROI)
public EnqueueUpload ( Mat src, GpuMat dst ) : void
src Mat
dst GpuMat
return void

QueryIfComplete() public method

public QueryIfComplete ( ) : bool
return bool

Release() public method

Clean up any resources being used.
public Release ( ) : void
return void

Stream() public method

Creates empty Stream
public Stream ( ) : System
return System

Stream() public method

Creates from native cv::gpu::Stream* pointer
public Stream ( IntPtr ptr ) : System
ptr System.IntPtr
return System

Stream() public method

public Stream ( Stream m ) : System
m Stream
return System

WaitForCompletion() public method

public WaitForCompletion ( ) : void
return void