error result for circular gabor filter code

hi,
I want to ask about circular gabor filter, I write a code in matlab but it doesn't give me correct output I think there is mistake but I don’t know where
here is the code NOTE sigma is the standard deviation of gaussian and fc is the central frequency of circular gabor
for x = -fix(sigma):fix(sigma)
for y = -fix(sigma):fix(sigma)
G(fix(sigma)+x+1,fix(sigma)+y+1) = exp(-.5*((x/sigma)^2+(y/sigma)^2))* cos(2*pi*fc*(sqrt((x)^2+(y)^2)));
end end
please if you could, help me
thank you and I appreciate your time

답변 (1개)

hind
hind 2011년 11월 23일

0 개 추천

please any one my help me,

댓글 수: 1

chitresh
chitresh 2013년 11월 30일
i thing you write some thing wrong in the code... gb=exp(-0.5(x_theta.^2/sigma_x^2+y_theta.^2/sigma_y^2)).*cos(2*pi/lambda*x_theta+psi);

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

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

제품

질문:

2011년 11월 21일

댓글:

2013년 11월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by