First time here? Check out the FAQ!
answered 2013-05-23 03:36:06 -0600
you need to specify the maxComponents that PCA should retain, i.e. change
PCA pca(input_feature_vector,Mat(),CV_PCA_DATA_AS_ROW, 0);
to
PCA pca(input_feature_vector,Mat(),CV_PCA_DATA_AS_ROW, 150);