A simple C++ implementation of Eigenfaces, a fundamental application of Principal Component Analysis.
- Clone this repository
git clone https://github.com/himynameiszim/eigenfaces.git
cd eigenfaces/
- Configure the dataset
Inside the
main.cppfile, modify the variablespathDir,numComponents,testImgIDto your system configuration. - Build the project with
Ctrl+Shift+B
Be sure to install C++ Eigen and OpenCV into your IDE's IncludePath.
The dataset used in this implementation is the Yale Face Dataset.