00001 /* 00002 * pca_features.h 00003 * online_patch 00004 * 00005 * Created by Victor Eruhimov on 5/15/09. 00006 * Copyright 2009 Argus Corp. All rights reserved. 00007 * 00008 */ 00009 00010 #if !defined(_PCA_FEATURES_H) 00011 #define _PCA_FEATURES_H 00012 00013 #include <cv.h> 00014 #include "features.h" 00015 00016 void savePCAFeatures(const char* filename, CvMat* avg, CvMat* eigenvectors); 00017 void calcPCAFeatures(std::vector<IplImage*>& patches, const char* filename); 00018 void loadPCAFeatures(const char* path, std::vector<IplImage*>& patches); 00019 00020 #endif //_PCA_FEATURES_H