what should be the parameter(​sigma,lamb​da,psi,gam​ma,theta)v​alues in gabor program ?

3 views (last 30 days)
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

Answers (1)

chitresh
chitresh on 2 Dec 2013
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

Community Treasure Hunt

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

Start Hunting!