Can anyone help me to correct the gabor filter below to produce the response image in order to analyse the texture of the brain image.
%i is input image
%fourier transform of the input image
i2 = fft2(i);
%gabor filter in polar coordinates
[M, N] = size(i2);
F0 = 64*sqrt(2); %spatial frequency of sinusoidal carrier
w0 = 135; %direction of sinusoidal carrier
P = 0; %phase of sinusoidal carrier
x0 = N/2; %peak of the function
y0 = M/2; %peak of the function
a = 1/128; %axis of the gaussian envelop
b = 1/128; %axis of the gaussian envelop
theta = 135; %orientation of gaussian envelop
K = 2*pi*(1/a*b);
Good example. Now you are placing image on a button. I tried to place the image that covers the complete button. But when I maximize my GUI the image is not resetting to the size of the button(The image size remains the same but the size of button is increased or reduced). would you please help me on this?