OpenCV  2.4.13.3
Open Source Computer Vision
cv::LDA Class Reference

#include <contrib.hpp>

Public Member Functions

 LDA (int num_components=0)
 
 LDA (const Mat &src, vector< int > labels, int num_components=0)
 
 LDA (InputArrayOfArrays src, InputArray labels, int num_components=0)
 
void save (const string &filename) const
 
void load (const string &filename)
 
void save (FileStorage &fs) const
 
void load (const FileStorage &node)
 
 ~LDA ()
 
void compute (InputArrayOfArrays src, InputArray labels)
 
Mat project (InputArray src)
 
Mat reconstruct (InputArray src)
 
Mat eigenvectors () const
 
Mat eigenvalues () const
 

Protected Member Functions

void lda (InputArrayOfArrays src, InputArray labels)
 

Protected Attributes

bool _dataAsRow
 
int _num_components
 
Mat _eigenvectors
 
Mat _eigenvalues
 

Constructor & Destructor Documentation

§ LDA() [1/3]

cv::LDA::LDA ( int  num_components = 0)
inline

§ LDA() [2/3]

cv::LDA::LDA ( const Mat src,
vector< int labels,
int  num_components = 0 
)
inline

compute eigenvectors and eigenvalues

§ LDA() [3/3]

cv::LDA::LDA ( InputArrayOfArrays  src,
InputArray  labels,
int  num_components = 0 
)
inline

compute eigenvectors and eigenvalues

§ ~LDA()

cv::LDA::~LDA ( )
inline

Member Function Documentation

§ compute()

void cv::LDA::compute ( InputArrayOfArrays  src,
InputArray  labels 
)

Compute the discriminants for data in src (row aligned) and labels.

§ eigenvalues()

Mat cv::LDA::eigenvalues ( ) const
inline

§ eigenvectors()

Mat cv::LDA::eigenvectors ( ) const
inline

§ lda()

void cv::LDA::lda ( InputArrayOfArrays  src,
InputArray  labels 
)
protected

§ load() [1/2]

void cv::LDA::load ( const string &  filename)

§ load() [2/2]

void cv::LDA::load ( const FileStorage node)

§ 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() [1/2]

void cv::LDA::save ( const string &  filename) const

§ save() [2/2]

void cv::LDA::save ( FileStorage fs) const

Member Data Documentation

§ _dataAsRow

bool cv::LDA::_dataAsRow
protected

§ _eigenvalues

Mat cv::LDA::_eigenvalues
protected

§ _eigenvectors

Mat cv::LDA::_eigenvectors
protected

§ _num_components

int cv::LDA::_num_components
protected

The documentation for this class was generated from the following file: