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

#include <Facebase.h>

Inheritance diagram for Facebase:
Inheritance graph
[legend]
Collaboration diagram for Facebase:
Collaboration graph
[legend]

Public Member Functions

MatrixXf project (const MatrixXi &X)
 
VectorXf euclideanDist (const VectorXf &W)
 
VectorXf reconstructFace (const VectorXf &W)
 
float euclideanDistFace (const VectorXi &X, const VectorXf &face)
 
- Public Member Functions inherited from PCA
int32_t compute (const MatrixXi &images, int32_t numComponents=-1)
 

Public Attributes

MatrixXf V
 
int32_t numComponents
 

Protected Attributes

MatrixXf W_all
 
size_t n_pixels
 
- Protected Attributes inherited from PCA
MatrixXf U
 
VectorXf mu
 

Member Function Documentation

VectorXf Facebase::euclideanDist ( const VectorXf &  W)

Calculate distance between weight and the weights for the current method used.

Parameters
WWeights calculated by projecting images onto subspace.
Returns
Return a vector containing all distances.
float Facebase::euclideanDistFace ( const VectorXi &  X,
const VectorXf &  face 
)

Calculate the distance to the face subspace.

Parameters
XInput image.
faceFace vector.
Returns
Returns the distance to the face subspace.
MatrixXf Facebase::project ( const MatrixXi &  X)

Project X onto subspace.

Parameters
XInput image.
Returns
Returns the weight matrix.
VectorXf Facebase::reconstructFace ( const VectorXf &  W)

Reconstruct a face from a weight.

Parameters
WWeight calculated by projecting image onto subspace.
Returns
Returns the face vector.

Member Data Documentation

size_t Facebase::n_pixels
protected
int32_t Facebase::numComponents
MatrixXf Facebase::V
MatrixXf Facebase::W_all
protected

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