Show / Hide Table of Contents

Class ResourcesTracker

Used for managing the resources of OpenCVSharp, like Mat, MatExpr, etc.

Inheritance
System.Object
ResourcesTracker
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public sealed class ResourcesTracker : IDisposable

Methods

| Improve this Doc View Source

Dispose()

Dispose all traced objects

Declaration
public void Dispose()
| Improve this Doc View Source

NewMat()

Create a new Mat instance, and trace it

Declaration
public Mat NewMat()
Returns
Type Description
Mat
| Improve this Doc View Source

NewMat(Size, MatType, Scalar)

Create a new Mat instance, and trace it

Declaration
public Mat NewMat(Size size, MatType matType, Scalar scalar)
Parameters
Type Name Description
OpenCvSharp.Size size

size

OpenCvSharp.MatType matType

matType

OpenCvSharp.Scalar scalar

scalar

Returns
Type Description
Mat
| Improve this Doc View Source

NewUMat()

Create a new UMat instance, and trace it

Declaration
public UMat NewUMat()
Returns
Type Description
UMat
| Improve this Doc View Source

NewUMat(Size, MatType, Scalar)

Create a new UMat instance, and trace it

Declaration
public UMat NewUMat(Size size, MatType matType, Scalar scalar)
Parameters
Type Name Description
OpenCvSharp.Size size

size

OpenCvSharp.MatType matType

matType

OpenCvSharp.Scalar scalar

scalar

Returns
Type Description
UMat
| Improve this Doc View Source

T<TCvObject>(TCvObject)

Trace the object obj, and return it

Declaration
public TCvObject T<TCvObject>(TCvObject obj)
    where TCvObject : DisposableObject
Parameters
Type Name Description
TCvObject obj
Returns
Type Description
TCvObject
Type Parameters
Name Description
TCvObject
| Improve this Doc View Source

T<TCvObject>(TCvObject[])

Trace an array of objects , and return them

Declaration
public TCvObject[] T<TCvObject>(TCvObject[] objects)
    where TCvObject : DisposableObject
Parameters
Type Name Description
TCvObject[] objects
Returns
Type Description
TCvObject[]
Type Parameters
Name Description
TCvObject
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX