error in storing HOG feature

조회 수: 21 (최근 30일)
Chandru G
Chandru G 2017년 3월 21일
댓글: Chandru G 2017년 6월 2일
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.

채택된 답변

Tohru Kikawada
Tohru Kikawada 2017년 3월 21일
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);
  댓글 수: 1
Chandru G
Chandru G 2017년 6월 2일
I Made size normalisation to all my images. and I got good result.thq.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by