#include <PCA.h>
|
int32_t | compute (const MatrixXi &images, int32_t numComponents=-1) |
|
int32_t PCA::compute |
( |
const MatrixXi & |
images, |
|
|
int32_t |
numComponents = -1 |
|
) |
| |
Computes the Eigenvectors of the images using PCA.
- Parameters
-
images | Each images is represented as a column vector. |
numComponents | Number 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.
The documentation for this class was generated from the following files: