Click or drag to resize

Stream Class

Encapculates Cuda Stream. Provides interface for async coping.
Inheritance Hierarchy

Namespace:  OpenCvSharp.Cuda
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
public sealed class Stream : DisposableGpuObject

The Stream type exposes the following members.

Constructors
  NameDescription
Public methodStream
Creates empty Stream
Public methodStream(IntPtr)
Creates from native cv::gpu::Stream* pointer
Public methodStream(Stream)
Initializes a new instance of the Stream class
Top
Properties
  NameDescription
Public propertyCvPtr
Native pointer of OpenCV structure
(Inherited from DisposableCvObject.)
Public propertyIsDisposed
Gets a value indicating whether this instance has been disposed.
(Inherited from DisposableObject.)
Public propertyIsEnabledDispose
Gets or sets a value indicating whether you permit disposing this instance.
(Inherited from DisposableObject.)
Public propertyStatic memberNull
Empty stream
Top
Methods
  NameDescription
Public methodDispose
Releases the resources
(Inherited from DisposableObject.)
Public methodEnqueueConvert
converts matrix type, ex from float to uchar depending on type
Public methodEnqueueCopy
Copy asynchronously
Public methodEnqueueDownload
Downloads asynchronously. Warning! cv::Mat must point to page locked memory (i.e. to CudaMem data or to its subMat)
Public methodEnqueueHostCallback
Adds a callback to be called on the host after all currently enqueued items in the stream have completed
Public methodEnqueueMemSet(GpuMat, Scalar)
Memory set asynchronously
Public methodEnqueueMemSet(GpuMat, Scalar, GpuMat)
Memory set asynchronously
Public methodEnqueueUpload
Uploads asynchronously. Warning! cv::Mat must point to page locked memory (i.e. to CudaMem data or to its ROI)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodQueryIfComplete
Public methodRelease
Clean up any resources being used.
Public methodThrowIfDisposed
If this object is disposed, then ObjectDisposedException is thrown.
(Inherited from DisposableObject.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWaitForCompletion
Top
Operators
See Also