what should be the parameter(sigma,lambda,psi,gamma,theta)values in gabor program ?
2 次查看(过去 30 天)
显示 更早的评论
clc; clear all; close all; I=imread('katrina.jpg'); I=rgb2gray(I); I=imresize(I,[64 64],'bilinear'); [N N]=size(I) imshow(I) I=im2double(I); sigma=input('Enter the value of sigma '); psi=input('Enter the value of psi '); gamma=input('Enter the value of gamma '); n1=input('Enter the number of lambda you want to take '); lambda=input('Enter the different values of lambda '); n2=input('Enter the number of theta you want to take '); theta=input('Enter the different values of theta'); for i=1:n1 l=lambda(i); figure for j=1:n2 t=theta(j); g1=gabor_fn(sigma,t,l,psi,gamma); display('value of lambda');display(l); display('value of theta ');display(t); display('output of gabor filter will be');display(g1); % figure subplot(1,n2,j); GT=conv2(I,double(g1),'same') imshow(GT); end end
0 个评论
回答(1 个)
chitresh
2013-12-2
lambda default value is 2 that is wavelength.
bw = 1 default bandwidth.
theta = 0 to 360 degree any thing u can choose
phase offset = -180 to 180
gamma = .5 default , 1 for circular and less than 1 orientation of the parallel strips
it you get your answer plz accept it
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Gamma Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!