Class Algorithm
Base class for high-level OpenCV algorithms
Inheritance
System.Object
Algorithm
Implements
Inherited Members
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public abstract class Algorithm : DisposableCvObject, ICvPtrHolder
Properties
| Improve this Doc View SourceEmpty
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
Declaration
public virtual bool Empty { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceGetDefaultName()
Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
Declaration
public virtual string GetDefaultName()
Returns
Type | Description |
---|---|
System.String |
Read(FileNode)
Reads algorithm parameters from a file storage
Declaration
public virtual void Read(FileNode fn)
Parameters
Type | Name | Description |
---|---|---|
FileNode | fn |
Save(String)
Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage fs).
Declaration
public virtual void Save(string fileName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName |
Write(FileStorage)
Stores algorithm parameters in a file storage
Declaration
public virtual void Write(FileStorage fs)
Parameters
Type | Name | Description |
---|---|---|
FileStorage | fs |