A small C++ library to perform 2 class Linear Discriminant Analysis using Eigen Library for OpenCV.
Linear Discriminant Analysis is a statistical techinque which is used in Dimensionality Reduction and also for classification of data.
This was inspired by Stephen Marshland's "Machine Learning: An Algorithmic Perspective" implementation in Python(this is re-implementation of the same in C++).
In order to build it, follow the instructions on this page http://www.developerstation.org/2012/05/linear-discriminant-analysis-using.html or follow the following steps (for ubuntu):
- git clone or download the above project
- cd into the project
- $sudo apt-get install libeigen3-dev
- $mkdir build
- $cd build
- $cmake ..
- make
- ./LDA
- Add CvStatModel. i.e. inherit from CvStatModel class for more tighter integration in OpenCV.
NOTE: This code is in Beta and may be buggy. Its currently under development.