Stream Class OpenCvSharp Class Library
Encapculates Cuda Stream. Provides interface for async coping.
Inheritance Hierarchy

SystemObject
  OpenCvSharpDisposableObject
    OpenCvSharpDisposableCvObject
      OpenCvSharp.CPlusPlus.GpuDisposableGpuObject
        OpenCvSharp.CPlusPlus.GpuStream

Namespace:  OpenCvSharp.CPlusPlus.Gpu
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
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(GpuMat, CudaMem)
Downloads asynchronously. Warning! cv::Mat must point to page locked memory (i.e. to CudaMem data or to its subMat)
Public methodEnqueueDownload(GpuMat, Mat)
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(CudaMem, GpuMat)
Uploads asynchronously. Warning! cv::Mat must point to page locked memory (i.e. to CudaMem data or to its ROI)
Public methodEnqueueUpload(Mat, GpuMat)
Uploads asynchronously. Warning! cv::Mat must point to page locked memory (i.e. to CudaMem data or to its ROI)
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (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 (Inherited from Object.)
Public methodWaitForCompletion
Top
Operators

  NameDescription
Public operatorStatic member(Stream to Boolean)
Top
See Also

Reference