Chapter 6
Chapter 6
Frequency Domain
Three categories:
1. Spatial domain methods: operate on the
images itself,
Point processing, e.g., image averaging;
logic operation; contrast stretching ...
Mask processing, e.g., filtering or mask
operation, (blurring, median
Image Enhancement …
2. Frequency domain methods:
work on the Fourier transformed output of the image,
examples: from the convolution theory
g(x,y) = f(x,y) h(x,y)
=> G(u,v) = F(u,v) • H(u,v)
=> certain properties of F(u,v) can be
emphasized into G(u,v)
3 X 3 Average 5 X 5 Average
3500
3000
+
Original histogram
3500
3000
=
Equalized histogram
2500 2500
Noisy image
2000 2000
500
Blurry Image Laplacian 500
0 0
0 50 100 150 200 250 0 50 100 150 200 250
7 X 7 Average Median
Frequency Domain
FREQUENCY refers to the RATE OF REPETITION of
some periodic event.
In imaging, SPATIAL FREQUENCY is the rate at
which the brightness of an image changes with
position in space.
High spatial frequencies correspond to rapidly varying,
fine detail; low spatial frequencies correspond to
slowly changing brightness.
Theory shows that any varying signal (1D or 2D) can
be decomposed or TRANSFORMED into a series of
simple periodic variations.
The Fourier Transform is one of the best known
techniques for performing such a decomposition, and
decomposes the signal into a set of sine waves of
Frequency Domain Filtering
Steps of filtering in the frequency domain
1. Calculate the DFT of the image f
2. Generate a frequency domain filter H
– H and F should have the same size
– H should NOT be centered. Centered H is for
displaying purpose only.
– If H is centered, F needs to be centered too and
some post-processing is required
3. Multiply F by H (element by element)
4. Compute IDFT
5. Take the real part of the IDFT
Frequency Domain Filtering
Correspondence between Filtering
in the Spatial and Frequency
Domains
Filter in the Spatial Domain can be expressed
by the convolution function.
Convolution in
g(x,y)=h(x,y)f(x,y) Time Domain
Multiplication in
G(u,v)=F(u,v)H(u,v) Frequency Domain
D(u, v) [(u M / 2) (v N / 2) ]
2 2 1/ 2
cutoff
frequency
Frequency domain
h(x,y)
Spatial domain
Ideal Lowpass filters (ILPF):
Example
When the cut off
frequency loci is small, Original D=5
all details are lost due to
blurring. Large objects
appear as blobs.
As the filter radius
increases, blurring D=15 D=30
becomes less severe.
A “ringing” effect
becomes finer in texture
as the amount of high
D=80 D=230
frequency content
removed decreases. The
“ringing” effect is a
characteristic of ideal
Ideal Lowpass filters (ILPF):
Example
No ringing
Filter of order 20 approximates the
ringing behavior of ILPF
Gaussian Lowpass filters
(GLPF)
The form of these filters in 2-D
Butterworth
highpass filter
Gaussian
highpass filter
Ideal Highpass filters (IHPF)
Opposite to low-pass filtering: eliminating center
and keeping the others
Butterworth Highpass filters
(BHPF)
Idea !
L 0.25
H 2
c 1
D0 80
Any Questions ?