C# 클래스 OpenCvSharp.Gpu.Stream

Encapculates Cuda Stream. Provides interface for async coping.
상속: OpenCvSharp.Gpu.DisposableGpuObject
파일 보기 프로젝트 열기: shimat/opencvsharp

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

메소드 상세

Dispose() 보호된 메소드

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. ///
리턴 void

EnqueueConvert() 공개 메소드

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
리턴 void

EnqueueCopy() 공개 메소드

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

EnqueueDownload() 공개 메소드

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
리턴 void

EnqueueHostCallback() 공개 메소드

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
리턴 void

EnqueueMemSet() 공개 메소드

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

EnqueueMemSet() 공개 메소드

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

EnqueueUpload() 공개 메소드

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
리턴 void

QueryIfComplete() 공개 메소드

public QueryIfComplete ( ) : bool
리턴 bool

Release() 공개 메소드

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

Stream() 공개 메소드

Creates empty Stream
public Stream ( ) : System
리턴 System

Stream() 공개 메소드

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

Stream() 공개 메소드

public Stream ( Stream m ) : System
m Stream
리턴 System

WaitForCompletion() 공개 메소드

public WaitForCompletion ( ) : void
리턴 void