Professional Documents
Culture Documents
Established in 1998
Session: 2020-21
t 0 T0
2
bn
T0 g (t ) sin nw t dt
t0
0
f ( x )e
j 2ux
F (u ) dx
Where j 1
F (u )e
j 2ux
f ( x) du
• (u) is the frequency variable.
• F(u) is composed of an infinite sum of sine and
cosine terms and…
• Each value of u determines the frequency of its
corresponding sine-cosine pair.
Digital Image Processing
Continuous One-Dimensional Fourier Transform
and Its Inverse
Example
Find the Fourier transform of a gate function (t)
defined by
1
1 x u
( x) 2 F (u ) sinc
0
1
x 2
2
x u
- 0.5 0.5
2 4
Digital Image Processing
Continuous One-Dimensional Fourier Transform
and Its Inverse
f ( x) f ( x0 xx)
M 1 u
j 2 x
f ( x) F (u )e M
u 0
x =[0,1,2, …, M-1]
Digital Image Processing
Discrete One-Dimensional Fourier Transform and
Its Inverse
F (u ) R (u ) jI (u )
j ( u )
F (u ) F (u ) e
F (u ) [ R 2 (u ) I 2 (u )]1/ 2
I (u )
(u ) tan 1
R (u )
Digital Image Processing
Discrete One-Dimensional Fourier Transform and
Its Inverse
• Fourier spectrum:
F (u , v) R (u, v) I (u , v)
2 2
1/ 2
I (u , v)
• Phase: (u, v) tan 1
R (u , v )
2
• Power spectrum: P (u , v) F (u , v) R 2 (u , v) I 2 (u , v)
x 0 y 0
M 1N 1 u v
j 2 ( x y )
f ( x, y ) F (u , v)e M N
u 0 v 0
2
F (u , v) R (u , v) I (u , v) 2
1/ 2
Fourier Spectrum
Digital Image Processing
Discrete Two-Dimensional Fourier Transform and Its
Inverse
M 1N 1
1
F (0,0)
MN
f ( x, y )
x 0 y 0
If
g (t ) G ( )
then
j 0 t
g (t )e G ( 0 )
x y
j 2 ( u 0 v0 )
f ( x, y ) e M N
F (u u0 , v v0 )
Digital Image Processing
Frequency Shifting Property of the Fourier Transform
Notch Filter
0 if (u , v) ( M / 2, N / 2)
H (u , v)
1 otherwise
Digital Image Processing
Low-pass and High-pass Filters
Low Pass Filter attenuate
high frequencies while
“passing” low frequencies.
1 if D(u , v) D0
H (u , v)
0 if D(u , v) D0
D(u, v) (u M / 2) (v N / 2)
2
2 1/ 2
M 1N 1
F (u, v)
2
Total Power PT
u 0 v 0
fc =15 fc =30
= 94.6% = 96.4%
fc =80 fc =230
= 98% = 99.5%
Digital Image Processing
Cause of Ringing
1. You must give the user the ability to specify the cutoff
frequency D0
2. Calculate the The remained percentage power after
filtration.
3. Display the image after filtration
4. Use Elaine image to test your program
Digital Image Processing
Smoothing Frequency Domain, Butterworth Low-pass
Filters
1
H (u , v)
1 D (u , v) / D0
2n
Radii= 15
Radii= 30
D 2 ( u ,v ) / 2 D02
H (u , v) e
Digital Image Processing
Smoothing Frequency Domain, Gaussian Low-pass
Filters
Gaussian Low-pass Radii= 5
Radii= 15
Radii= 30
Hhp(u,v) = 1 - Hlp(u,v)
0 if D(u , v) D0
H (u , v)
1 if D(u , v) D0
Digital Image Processing
Sharpening Frequency Domain, Butterworth High-
pass Filters
1
H (u , v)
1 D0 / D (u , v)
2n
D 2 ( u ,v ) / 2 D02
H (u, v) 1 e
Digital Image Processing
Homomorphic Filtering
g(t) = k(t)*h(t)
k(t) h(t) g(t)
G(f) = K(f)H(f)
k(-m)
m
Digital Image Processing
Convolution
h(m)
1
g(t)
m
-1
k(1-m)
m
Digital Image Processing
Convolution
h(m)
1
g(t)
m
-1
k(2-m)
m
Digital Image Processing
Convolution
h(m)
1
g(t)
m
-1
k(3-m)
m
Digital Image Processing
Convolution
h(m)
1
g(t)
m
-1
k(4-m)
m
Digital Image Processing
Convolution
h(m)
1
g(t)
m
-1
k(5-m)
m
Digital Image Processing
Convolution
h(m)
1
g(t)
m
-1
k(6-m)
m
Digital Image Processing
2-Dimensions Convolution
M 1 N 1
1
f ( x , y ) h( x , y )
MN
f (m, n)h( x m, y n)
m 0 n 0