The note explains in detail how to apply the Matlab 2-dimensional FFT for filtering of two-dimensional signals, e.g. images.
It is shown how to connect the output from fft2 to the actual Fourier transform of the signal, and in particular how transfer functions of simple filters may be coded.
Can you tell me more about symbols that you used?
What is K0, cut-off frequency? What are other K and why like this?
I applied it as follows:
%****FFT Low Pass Filter****%
M = 1024;
N = 1024;
dx = 1;
dy = 1;
KX0 = (mod(1/2 + (0:(M-1))/M , 1) - 1/2);
KX1 = KX0 * (2*pi/dx);
KY0 = (mod(1/2 + (0:(N-1))/N , 1) - 1/2);
KY1 = KY0 * (2*pi/dx);
[KX,KY] = meshgrid(KX1,KY1);
K0 = 0.16;
T = (KX.*KX + KY.*KY < K0^2);
bwmofilt = ifft2(T.*fft2(bwmo));
%******END of FFT Low Pass Filter******%
A good material...
since this PDF submission does not provide any usable code it should be tagged as a WHITE PAPER
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.