1 cv::PCA pca(samples, cv::Mat(), cv::PCA::DATA_AS_ROW,100); 2 FileStorage fs("pca.xml",FileStorage::WRITE); 3 pca.write(fs); 4 fs.release();
1 FileStorage fs("pca.xml",FileStorage::READ); 2 cv::PCA pca; 3 pca.read(fs.root()); 4 fs.release();
1 cv::PCA pca(samples, cv::Mat(), cv::PCA::DATA_AS_ROW,100); 2 FileStorage fs("pca.xml",FileStorage::WRITE); 3 pca.write(fs); 4 fs.release();
1 FileStorage fs("pca.xml",FileStorage::READ); 2 cv::PCA pca; 3 pca.read(fs.root()); 4 fs.release();