HOG Descriptor function Error
Info
This question is closed. Reopen it to edit or answer.
Show older comments
Hi can any one help me i am running the function HOG but getting an error which is
??? Input argument "Im" is undefined.
Error in ==> HOG at 11 [L,C]=size(Im); % L num of lines ; C num of columns
you can find the function from the link below. http://www.mathworks.com/matlabcentral/fileexchange/index?term=tag%3A%22i+run+your+code%22
3 Comments
Walter Roberson
on 7 Nov 2012
Algorithms Analyst
on 7 Nov 2012
Algorithms Analyst
on 8 Nov 2012
Answers (1)
Walter Roberson
on 7 Nov 2012
How are you invoking the code? Are you passing in a grayscale image
Im = rgb2gray( imread('YourFile.jpg') );
hog(Im)
4 Comments
Algorithms Analyst
on 7 Nov 2012
Algorithms Analyst
on 7 Nov 2012
Walter Roberson
on 7 Nov 2012
The function is not defined for RGB images. Read the first line of the code where it says "grayscale".
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!