From: Eric Griffin on
hello,

I need help with my fft2 of these an image and a mask. I have padded the two functions so that they are the same (and also made sure that they were converted to doubles.

Fp=fft2(fp);
Wp=fft2(wp);

for x=1:P;
for y=1:Q;
Gp1=Fp(x,y)*Wp(x,y);
Gp2(x,y)=Gp1;
end
end

gp=ifft2(Gp2);

gp=real(gp);
gp=gp(1:A+C, 1:B+D);

figure, imshow(gp);title('gp');

the resulting image is a large white moon. My program needs to generate the enhanced filtered image (gs). Please let me know what I am doing wrong!