Code covered by the BSD License  

Highlights from
How to use FFT2

4.57143

4.6 | 8 ratings Rate this file 106 Downloads (last 30 days) File Size: 108.57 KB File ID: #11639

How to use FFT2

by Harald E. Krogstad

 

05 Jul 2006 (Updated 05 Jul 2006)

How to apply the 2D FFT functions in Matlab

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (10)
05 Jul 2006 urs (us) schwarz

since this PDF submission does not provide any usable code it should be tagged as a WHITE PAPER
us

06 Jul 2006 S Mai  
18 Jul 2006 George Caminha

A good material...

03 Jan 2007 Vishnuvenkatesh Dhage  
28 Jan 2007 ARJUN KUMAR

helping material

29 Mar 2007 HYOJOON CHOI

good

18 Jan 2008 asafd asdfasdf  
28 Jan 2008 Vitaly Minchenya

Very helpful.

28 Jan 2008 Vitaly Minchenya

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******%

23 Apr 2008 emine doganay  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
filtering Harald E. Krogstad 22 Oct 2008 08:32:06
fft Harald E. Krogstad 22 Oct 2008 08:32:06
2d signals Harald E. Krogstad 22 Oct 2008 08:32:06
transfer functions Harald E. Krogstad 22 Oct 2008 08:32:06
2d signals ricky C 22 Jan 2009 13:22:53
2d signals Sebastian 21 Sep 2009 03:30:20
fft Sebastian 21 Sep 2009 03:30:41
2d signals Luis 24 Oct 2010 19:41:47
fft Gheorghi 08 Nov 2011 19:53:26
fft Benni Sauer 13 Feb 2012 06:38:46
2d signals Benni Sauer 13 Feb 2012 06:38:47
2d signals Corrado Corrado 20 May 2012 18:16:48
fft Corrado Corrado 20 May 2012 18:20:52

Contact us at files@mathworks.com