Chapter 4
Chapter 4
Chapter 4:
Image Enhancement in the
Frequency Domain
1
Department of Computer Engineering, CMU
Notch filter
• this filter is to force the F(0,0)
which is the average value of an
image (dc component of the
spectrum)
• the output has prominent edges
• in reality the average of the
displayed image can’t be zero as
it needs to have negative gray
levels. the output image needs to
scale the gray level
0 if (u, v) = (M/2, N/2 )
H (u, v) =
1 otherwise 4
2
Department of Computer Engineering, CMU
3
Department of Computer Engineering, CMU
Smoothing Frequency-domain
filters: Ideal Lowpass filter
4
Department of Computer Engineering, CMU
Result of ILPF
10
5
Department of Computer Engineering, CMU
Example
11
12
6
Department of Computer Engineering, CMU
Example
13
14
7
Department of Computer Engineering, CMU
15
Example
16
8
Department of Computer Engineering, CMU
Example
17
Example
18
9
Department of Computer Engineering, CMU
Example
19
0 if D(u, v) ≤ D 0
H (u, v) =
1 if D(u, v) > D 0
Butterworth highpass filter
1
H (u , v) =
1 + [D 0 D(u, v)]
2n
20
10
Department of Computer Engineering, CMU
21
22
11
Department of Computer Engineering, CMU
23
24
12
Department of Computer Engineering, CMU
25
26
13
Department of Computer Engineering, CMU
27
Examples
28
14
Department of Computer Engineering, CMU
Homomorphic Filter
29
30
15