PRODUCTS
Products Overview
Mathematica
Mathematica Student Edition
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Wolfram
SystemModeler
Wolfram
Finance Platform
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
Merchandise
SUPPORT
Support Overview
Mathematica
Documentation
Knowledge Base
Learning Center
Technical Services
Community & Forums
Training
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News
Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
User's Guide
Image Transforms
8.2 Discrete Fourier Transform
The discrete Fourier transform (DFT) is a frequency domain representation of finite-extent sequences. The DFT is a decomposition of a finite-extent sequence by a family of complex exponential sequences. The DFT of a discrete-time sequence of length N is itself a sequence of length
N
.
The DFT plays a central role in the implementation of many signal and image processing algorithms. Particularly important has been the discovery of a fast algorithm, the fast Fourier transform (FFT) [
Coo65
], that reduces the number of complex multiplications needed to compute an
N
-point DFT by a factor of
.
Transform
Short
DiscreteFourierTransform
[
img
]
DFT[
img
]
discrete Fourier transform of
img
InverseDiscreteFourierTransform
[
coef
]
IDFT[
coef
]
inverse discrete Fourier transform of
coef
FourierMatrix
[
n
]
returns an
n
×
n
matrix of
n-
Fourier basis sequences
Image transforms.
The 1D discrete Fourier transform (1D DFT) is a unique decomposition of a discrete-time, finite-length signal onto a finite family (basis) of discrete, periodic, complex exponential sequences of the form
, where k,n,N
(integers). The ratio
is the fundamental frequency. The symmetric DFT formulation is given by the following pair of equations:
X[k] is known as the
N
-point DFT of the sequence x[n]. Equations (8.2.1) and (8.2.2) are the analysis and synthesis equations, respectively.
This loads the
ImageProcessing
package.
In[1]:=
We conclude this section with a couple of examples of computing the DFT. We first calculate the DFT of the following sequence:
Here is the sequence x[n] of length 32 and its DFT.
In[2]:=
Out[2]=
The 2D discrete Fourier transform (2D DFT) is a straightforward extension of the 1D formulation. The DFT X[k
1
,k
2
] of a 2D sequence
x[n
1
,n
2
] , with
, is defined as
for 0≤k
1
≤N
1
-1, 0≤k
2
≤N
2
-1 and
for 0≤ n
1
≤N
1
-1, 0≤n
2
≤N
2
-1.
Next we obtain the DFT of a 2D sequence defined by the following formula:
Here is the N×N matrix representation of this sequence (N=8).
In[3]:=
Out[3]//MatrixForm=
Here is the 32-point DFT of the sequence x[n
1
,n
2
].
In[4]:=
Here we plot the magnitude and phase of the 2D example sequence.
In[5]:=
Out[5]=
Finally, we compute the 2D DFT of one of the example images.
In[6]:=
Here is the original image.
In[7]:=
Out[7]=
Here we display the magnitude (left) and phase (right) spectra of the image.
In[8]:=
Out[8]=
In visualizing the frequency response of a sequence, it is common to use a centered DFT domain.
In[9]:=
Out[9]=
The energy compaction property of the DFT is clearly visible. Most of the signal's energy is concentrated at the four corners of the DFT magnitude matrix, which are the low-frequency zones of the transform domain. Note that a large majority of the Fourier coefficients have relatively small values and therefore contribute little to the signal's total energy.
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.