Académique Documents
Professionnel Documents
Culture Documents
Image Enhancement:
Filtering in the Frequency Domain
2
of
54
Contents
In this lecture we will look at image
enhancement in the frequency domain
Jean Baptiste Joseph Fourier
The Fourier series & the Fourier transform
Image Processing in the frequency domain
Image smoothing
Image sharpening
3
of
54
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
4
of
54
=
Any function that periodically repeats itself can be
expressed as a sum of sines and cosines of
different frequencies each multiplied by a different
coefficient a Fourier series
5
of
54
6
of
54
7
of
54
F (u , v)
M 1 N 1
f ( x, y)e
j 2 ( ux / M vy / N )
x 0 y 0
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
8
of
54
DFT
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
9
of
54
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
10
of
54
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
11
of
54
DFT
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
12
of
54
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
13
of
54
14
of
54
1
f ( x, y )
MN
M 1 N 1
F (u, v)e
j 2 ( ux / M vy / N )
u 0 v 0
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
15
of
54
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
16
of
54
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
17
of
54
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
18
of
54
19
of
54
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
20
of
54
21
of
54
1 if D(u , v) D0
H (u , v)
0 if D (u , v) D0
where D(u,v) is given as:
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
22
of
54
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
23
of
54
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
24
of
54
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
25
of
54
Result of filtering
with ideal low pass
filter of radius 5
Result of filtering
with ideal low pass
filter of radius 15
Result of filtering
with ideal low pass
filter of radius 30
Result of filtering
with ideal low pass
filter of radius 80
Result of filtering
with ideal low pass
filter of radius 230
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
26
of
54
Result of filtering
with ideal low pass
filter of radius 5
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
27
of
54
Result of filtering
with ideal low pass
filter of radius 15
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
28
of
54
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
29
of
54
Result of filtering
with Butterworth filter
of order 2 and cutoff
radius 5
Result of filtering
with Butterworth
filter of order 2 and
cutoff radius 30
Result of filtering
with Butterworth filter
of order 2 and cutoff
radius 230
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
30
of
54
Result of filtering
with Butterworth filter
of order 2 and cutoff
radius 5
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
31
of
54
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
32
of
54
H (u , v) e
D 2 ( u ,v ) / 2 D0 2
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
33
of
54
Result of filtering
with Gaussian filter
with cutoff radius 5
Result of filtering
with Gaussian
filter with cutoff
radius 15
Result of filtering
with Gaussian filter
with cutoff radius 30
Result of filtering
with Gaussian
filter with cutoff
radius 85
Result of filtering
with Gaussian filter
with cutoff radius
230
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
34
of
54
Result of filtering
with ideal low pass
filter of radius 15
Result of filtering
with Gaussian
filter with cutoff
radius 15
Result of filtering
with Butterworth
filter of order 2
and cutoff radius
15
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
35
of
54
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
36
of
54
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
37
of
54
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
38
of
54
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
39
of
54
Original
image
Spectrum of
original image
Gaussian lowpass
filter
Processed
image
40
of
54
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
41
of
54
0 if D (u , v) D0
H (u , v)
1 if D (u , v) D0
where D0 is the cut off distance as before
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
42
of
54
Results of ideal
high pass filtering
with D0 = 15
Results of ideal
high pass filtering
with D0 = 30
Results of ideal
high pass filtering
with D0 = 80
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
43
of
54
1
H (u , v)
1 [ D0 / D (u , v)]2 n
where n is the order and D0 is the cut off
distance as before
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
44
of
54
Results of
Butterworth
high pass
filtering of
order 2 with
D0 = 15
Results of
Butterworth
high pass
filtering of
order 2 with
D0 = 80
Results of Butterworth high pass
filtering of order 2 with D0 = 30
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
45
of
54
H (u , v) 1 e
D 2 ( u ,v ) / 2 D0 2
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
46
of
54
Results of
Gaussian
high pass
filtering with
D0 = 80
Results of
Gaussian
high pass
filtering with
D0 = 15
Results of Gaussian high pass
filtering with D0 = 30
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
47
of
54
Results of ideal
high pass filtering
with D0 = 15
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
48
of
54
Results of Butterworth
high pass filtering of order
2 with D0 = 15
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
49
of
54
Results of Gaussian
high pass filtering with
D0 = 15
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
50
of
54
Results of ideal
high pass filtering
with D0 = 15
Results of Butterworth
high pass filtering of order
2 with D0 = 15
Results of Gaussian
high pass filtering with
D0 = 15
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
51
of
54
Results of ideal
high pass filtering
with D0 = 15
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
52
of
54
Results of Butterworth
high pass filtering of order
2 with D0 = 15
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
53
of
54
Results of Gaussian
high pass filtering with
D0 = 15
Original image
High frequency
emphasis result
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
54
of
54
55
of
54
56
of
54
57
of
54
58
of
54
Laplacian in the
frequency domain
Inverse DFT of
Laplacian in the
frequency domain
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
59
of
54
Zoomed section of
the image on the
left compared to
spatial filter
60
of
54
Original
image
Laplacian
image scaled
Laplacian
filtered
image
Enhanced
image
61
of
54
62
of
54
63
of
54
Summary
In this lecture we examined image
enhancement in the frequency domain
The Fourier series & the Fourier transform
Image Processing in the frequency domain
Image smoothing
Image sharpening
64
of
54
65
of
54
66
of
54
Questions?