MATLAB: Error in storing HOG feature

hoghog features

I am Extracting HOG features from above code and storing the features in mat file, there I'm getting below error help me to solve the code.

Best Answer

extractHOGFeatures returns different sized features based on the image size. So you will need to resize images to the same image size if you expect the same feature length as follows:
I = imread(filename);
I = imresize(I,[256 256]); % align image size
featureVector = extractHOGFeatures(I);
Related Question