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

1 Ansicht (letzte 30 Tage)
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

Antworten (1)

chitresh
chitresh am 2 Dez. 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

Kategorien

Mehr zu Gamma Functions finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by