Class LDA
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Base class for objects that own a single native OpenCV pointer through an OpenCvSafeHandle. The SafeHandle is the single source of truth for the native handle value and is responsible for releasing it (including from its own finalizer when the managed object is dropped without Dispose()).
public class LDA : CvObject, IDisposable
- Inheritance
-
LDA
- Implements
- Inherited Members
Constructors
- LDA(InputArray, InputArray, int)
Initializes and performs a Discriminant Analysis with Fisher's Optimization Criterion on given data in src and corresponding labels in labels.If 0 (or less) number of components are given, they are automatically determined for given data in computation.
- LDA(int)
constructor
Methods
- Compute(InputArray, InputArray)
Compute the discriminants for data in src (row aligned) and labels.
- Eigenvalues()
Returns the eigenvalues of this LDA.
- Eigenvectors()
Returns the eigenvectors of this LDA.
- Load(FileStorage)
Deserializes this object from a given cv::FileStorage.
- Load(string)
Deserializes this object from a given filename.
- Project(InputArray)
Projects samples into the LDA subspace. src may be one or more row aligned samples.
- Reconstruct(InputArray)
Reconstructs projections from the LDA subspace. src may be one or more row aligned projections.
- Save(FileStorage)
Serializes this object to a given cv::FileStorage.
- Save(string)
Serializes this object to a given filename.