Function Index
DiscreteFourierTransform
DiscreteFourierTransform[
img
]
returns the discrete Fourier transform (DFT) of
img
.
DiscreteFourierTransform[
img
,
{n
1
,
n
2
,
...}
]
returns the DFT of a zero-padded
img
with dimensions n
1
×n
2
×... .
The 1D DFT of a sequence x[n] is defined as
X[k] =
x[n]
-j
k n
, 0≤ k ≤ N-1
The 2D DFT of a sequence x[n
1
,n
2
] is defined as
for 0≤k
1
≤N
1
-1 and 0≤k
2
≤N
2
-1, with
.
The argument
img
may be any list or
ImageData
expression.
See also User's Guide
8.2
,
8.3
.
Example
This loads the package.
In[1]:=
This computes and displays the DFT of a bright rectangle on a dark background.
In[2]:=
Here we display the magnitude and phase of the DFT.
In[3]:=
© 2008 Wolfram Research, Inc.
•
Terms of Use
•
Privacy Policy
Sign up for our newsletter: