From: Eric Griffin on 9 May 2010 21:56 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!
|
Pages: 1 Prev: can't start matlab -win32 in windows 2008 r2 Next: Need Help! fft2() |