Class LDA
Linear Discriminant Analysis
Inheritance
System.Object
LDA
Assembly: OpenCvSharp.dll
Syntax
public class LDA : DisposableCvObject, ICvPtrHolder
Constructors
|
Improve this Doc
View Source
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.
Declaration
public LDA(InputArray src, InputArray labels, int numComponents = 0)
Parameters
|
Improve this Doc
View Source
LDA(Int32)
Declaration
public LDA(int numComponents = 0)
Parameters
Type |
Name |
Description |
System.Int32 |
numComponents |
|
Methods
|
Improve this Doc
View Source
Compute the discriminants for data in src (row aligned) and labels.
Declaration
public void Compute(InputArray src, InputArray labels)
Parameters
|
Improve this Doc
View Source
DisposeUnmanaged()
Releases unmanaged resources
Declaration
protected override void DisposeUnmanaged()
Overrides
|
Improve this Doc
View Source
Eigenvalues()
Returns the eigenvalues of this LDA.
Declaration
Returns
|
Improve this Doc
View Source
Eigenvectors()
Returns the eigenvectors of this LDA.
Declaration
public Mat Eigenvectors()
Returns
|
Improve this Doc
View Source
Load(FileStorage)
Deserializes this object from a given cv::FileStorage.
Declaration
public void Load(FileStorage node)
Parameters
|
Improve this Doc
View Source
Load(String)
Deserializes this object from a given filename.
Declaration
public void Load(string fileName)
Parameters
Type |
Name |
Description |
System.String |
fileName |
|
|
Improve this Doc
View Source
Projects samples into the LDA subspace.
src may be one or more row aligned samples.
Declaration
public Mat Project(InputArray src)
Parameters
Returns
|
Improve this Doc
View Source
Reconstructs projections from the LDA subspace.
src may be one or more row aligned projections.
Declaration
public Mat Reconstruct(InputArray src)
Parameters
Returns
|
Improve this Doc
View Source
Save(FileStorage)
Serializes this object to a given cv::FileStorage.
Declaration
public void Save(FileStorage fs)
Parameters
|
Improve this Doc
View Source
Save(String)
Serializes this object to a given filename.
Declaration
public void Save(string fileName)
Parameters
Type |
Name |
Description |
System.String |
fileName |
|
|
Improve this Doc
View Source
Declaration
public static Mat SubspaceProject(InputArray w, InputArray mean, InputArray src)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static Mat SubspaceReconstruct(InputArray w, InputArray mean, InputArray src)
Parameters
Returns
Implements