Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Dip azimifar enhancement_l05_2020
1. 1
Shiraz University, Comp. Sc.&Eng. Dpt,
Prof. Z. Azimifar, 2020
Digital Image Processing
Image Enhancement in the
Frequency Domain,
Part IV
Dr Z. Azimifar
Computer Science and Engineering Department
Shiraz University
Winter 2020
7. Basic Steps for Filtering in the Frequency
Domain
7
Shiraz University, Comp. Sc.&Eng. Dpt,
Prof. Z. Azimifar, 2020
8. Basics of Filtering in the Frequency Domain
1. multiply the input image by (-1)x+y to center the transform to u = M/2 and
v = N/2 (if M and N are even numbers, then the shifted coordinates will be
integers)
2. computer F(u,v), the DFT of the image
3. multiply F(u,v) by a filter function H(u,v)
4. compute the inverse DFT of the result in (3)
5. obtain the real part of the result in (4)
6. multiply the result in (5) by (-1)x+y to cancel the multiplication of the input
image.
8
Shiraz University, Comp. Sc.&Eng. Dpt,
Prof. Z. Azimifar, 2020
9. Notch Filter
î
í
ì =
=
otherwise
1
N/2
(M/2,
v)
(u,
if
0
)
,
(
)
v
u
H
• This filter is to force the F(0,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
9
Shiraz University, Comp. Sc.&Eng. Dpt,
Prof. Z. Azimifar, 2020
10. Low pass filter
High pass filter
10
Shiraz University, Comp. Sc.&Eng. Dpt,
Prof. Z. Azimifar, 2020
Frequency Domain Filters
46. Homomorphic Filtering
2 2
0
( ( . )/ )
( , ) ( ) 1 c D u v D
H L L
h u v e
g g g
-
é ù
= - - +
ë û
C controls sharpness of the slope
46
Shiraz University, Comp. Sc.&Eng. Dpt,
Prof. Z. Azimifar, 2020