Table of Contents

Class Algorithm

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Base class for high-level OpenCV algorithms

public abstract class Algorithm : CvPtrObject, IDisposable
Inheritance
Algorithm
Implements
Derived
Inherited Members

Constructors

Algorithm(nint, Action<nint>)

Constructor for the direct-allocation pattern (raw T* only).

Algorithm(nint, nint, Action<nint>)

Constructor for the factory pattern (cv::Ptr<T>* + raw T*).

Properties

Empty

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read

Methods

GetDefaultName()

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.

Read(FileNode)

Reads algorithm parameters from a file storage

Save(string)

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage fs).

Write(FileStorage)

Stores algorithm parameters in a file storage