HOG Descriptor function Error

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

댓글 수: 3

Algorithms Analyst
Algorithms Analyst 2012년 11월 7일
they didnot solve it.
Algorithms Analyst
Algorithms Analyst 2012년 11월 8일
My dear this is still not working for grascale image how to call it ?

답변 (1개)

Walter Roberson
Walter Roberson 2012년 11월 7일

0 개 추천

How are you invoking the code? Are you passing in a grayscale image
Im = rgb2gray( imread('YourFile.jpg') );
hog(Im)

댓글 수: 4

Algorithms Analyst
Algorithms Analyst 2012년 11월 7일
Thank you for your response..I am applying the function on a rgb image but I am not finding any result and getting the error
here is my code A=imread('lena.bmp'); X=HOG(A); imshow(X) when I apply the function imshow the window appears but no results..Solve it plz..Its very urgent or can we apply it on a video clip?thanks
Algorithms Analyst
Algorithms Analyst 2012년 11월 7일
give me some suggestions Mr walter.
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".

이 질문은 마감되었습니다.

질문:

2012년 11월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by