Merge pull request #1224 from mbarnach:pca_io

This commit is contained in:
Roman Donchenko
2013-09-03 18:43:54 +04:00
committed by OpenCV Buildbot
3 changed files with 51 additions and 0 deletions

View File

@@ -670,6 +670,10 @@ public:
//! reconstructs the original vector from the projection
void backProject(InputArray vec, OutputArray result) const;
//! write and load PCA matrix
void write(FileStorage& fs ) const;
void read(const FileNode& fs);
Mat eigenvectors; //!< eigenvectors of the covariation matrix
Mat eigenvalues; //!< eigenvalues of the covariation matrix
Mat mean; //!< mean value subtracted before the projection and added after the back projection