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 SourceDispose()
Dispose all traced objects
Declaration
public void Dispose()
NewMat()
Create a new Mat instance, and trace it
Declaration
public Mat NewMat()
Returns
Type | Description |
---|---|
Mat |
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 |
NewUMat()
Create a new UMat instance, and trace it
Declaration
public UMat NewUMat()
Returns
Type | Description |
---|---|
UMat |
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 |
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 |
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 |