Table of Contents

Class Algorithm

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Base class for high-level OpenCV algorithms

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

Properties

Empty

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

public virtual bool Empty { get; }

Property Value

bool

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.

public virtual string GetDefaultName()

Returns

string

Read(FileNode)

Reads algorithm parameters from a file storage

public virtual void Read(FileNode fn)

Parameters

fn FileNode

Save(string)

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

public virtual void Save(string fileName)

Parameters

fileName string

Write(FileStorage)

Stores algorithm parameters in a file storage

public virtual void Write(FileStorage fs)

Parameters

fs FileStorage