FaceRecognitionLib
Public Member Functions | Protected Attributes | List of all members
PCA Class Reference

#include <PCA.h>

Inheritance diagram for PCA:
Inheritance graph
[legend]

Public Member Functions

int32_t compute (const MatrixXi &images, int32_t numComponents=-1)
 

Protected Attributes

MatrixXf U
 
VectorXf mu
 

Member Function Documentation

int32_t PCA::compute ( const MatrixXi &  images,
int32_t  numComponents = -1 
)

Computes the Eigenvectors of the images using PCA.

Parameters
imagesEach images is represented as a column vector.
numComponentsNumber of singular values used. If this is set to -1, a cumulative energy threshold of 90 % is used.
Returns
Returns the number of components used.

Member Data Documentation

VectorXf PCA::mu
protected
MatrixXf PCA::U
protected

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