Using Principal Component Analysis (PCA) for feature reduction (HOG-PCA)
Using Histogram of Ordered Gradients (HoG) I have computed features of 15 sample images. The feature vectors generated by these samples are very large (i.e., take up a lot of memory). To reduce these feature vectors, I am using principal component analysis (PCA). Here is the OpenCV code I am using: PCA pca(imageT, Mat(), CV_PCA_DATA_AS_ROW, 300); pca.project(imageT, imageT1); In imageT Matrix, number of rows = number of samples Number of columns = number of features Suppose for 15 images Number of rows of imageT is 15 and number of columns is 57,400. I want 300 features after applying PCA; it
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.