Class cv::LDA#
Linear Discriminant Analysis. View details
#include <opencv2/core.hpp>Collaboration diagram for cv::LDA:
Detailed Description#
Linear Discriminant Analysis.
- Todo:
document this class
Constructor & Destructor Documentation#
LDA()#
cv::LDA::LDA(
InputArrayOfArrays src,
InputArray labels,
int num_components = 0 )
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()#
cv::LDA::LDA(int num_components = 0)
constructor Initializes a LDA with num_components (default 0).
~LDA()#
destructor
Member Function Documentation#
compute()#
void cv::LDA::compute(
InputArrayOfArrays src,
InputArray labels )
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()#
void cv::LDA::load(const FileStorage & node)
Deserializes this object from a given cv::FileStorage.
load()#
void cv::LDA::load(const String & filename)
Deserializes this object from a given filename.
project()#
Mat cv::LDA::project(InputArray src)
Projects samples into the LDA subspace. src may be one or more row aligned samples.
reconstruct()#
Mat cv::LDA::reconstruct(InputArray src)
Reconstructs projections from the LDA subspace. src may be one or more row aligned projections.
save()#
void cv::LDA::save(const String & filename)
Serializes this object to a given filename.
save()#
void cv::LDA::save(FileStorage & fs)
Serializes this object to a given cv::FileStorage.
subspaceProject()#
static Mat cv::LDA::subspaceProject(
InputArray W,
InputArray mean,
InputArray src )
subspaceReconstruct()#
static Mat cv::LDA::subspaceReconstruct(
InputArray W,
InputArray mean,
InputArray src )
lda()#
void cv::LDA::lda(
InputArrayOfArrays src,
InputArray labels )
Member Data Documentation#
_eigenvalues#
_eigenvectors#
_num_components#
int cv::LDA::_num_components
Source file#
The documentation for this class was generated from the following file:
opencv2/core.hpp