Professor at Dept. Mathematical Sciences, NTNU, Trondheim, Norway

Watch this Author's files

I applied it as follows:

%****FFT Low Pass Filter****% %Array dimensions M = 1024; N = 1024; %Sampling intervals dx = 1; dy = 1; %Characteristic wavelengths 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); %Filter formulation K0 = 0.16; T = (KX.*KX + KY.*KY < K0^2); %Filter Application bwmofilt = ifft2(T.*fft2(bwmo)); imwrite(bwmofilt,'4.filtered.jpg'); %******END of FFT Low Pass Filter******%

Very helpful.

good

Contact us