Info

此问题已关闭。 请重新打开它进行编辑或回答。

HOG Descriptor function Error

4 次查看(过去 30 天)
Algorithms Analyst
Algorithms Analyst 2012-11-7
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

回答(1 个)

Walter Roberson
Walter Roberson 2012-11-7
How are you invoking the code? Are you passing in a grayscale image
Im = rgb2gray( imread('YourFile.jpg') );
hog(Im)
  4 个评论
Walter Roberson
Walter Roberson 2012-11-7
The function is not defined for RGB images. Read the first line of the code where it says "grayscale".

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by