I found out the HOG feature vector of the following image in MATLAB.
I used the following code.
I = imread('input.jpg');
I = rgb2gray(I);
[features, visualization] = extractHOGFeatures(I,'CellSize',[16 16]);
features comes out to be a 1x1944 vector and I need to reduce the dimensionality of this vector (say to 1x100), what method should I employ for the same?
I thought of Principal Component Analysis and ran the following in MATLAB.
prinvec = pca(features);
prinvec comes out to be an empty matrix (1944x0). Am I doing it wrong? If not PCA, what other methods can I use to reduce the dimension?
Nx1944HOG matrix and then apply PCA. Is that right? - Abdul FatirN > 1e4, see my answer I linked on why you need some 5 times more observations than features. - Adriaan