Professional Documents
Culture Documents
ImageProcessing7 FrequencyFiltering
ImageProcessing7 FrequencyFiltering
IMAGE ENHANCEMENT:
FILTERING IN THE FREQUENCY DOMAIN
Contents
Frequency
domain signal
processing
example in Excel
The Discrete Fourier Transform (DFT)
DFT
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
DFT
M 1 N 1
1
f ( x, y )
MN
F (u, v)e
u 0 v 0
j 2 ( ux / M vy / N )
The transfer function for the ideal low pass filter can be
given as:
1 if D(u , v) D0
H (u , v)
0 if D(u , v) D0
where D(u,v) is given as:
Result of filtering
Original with ideal low pass
image filter of radius 5
Result of filtering
Result of filtering
with ideal low pass
with ideal low pass
filter of radius 230
filter of radius 80
Ideal Low Pass Filter (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Result of filtering
with ideal low pass
filter of radius 5
Ideal Low Pass Filter (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Result of filtering
with ideal low pass
filter of radius 15
Butterworth Lowpass Filters
Result of filtering
Original with Butterworth filter
image of order 2 and cutoff
radius 5
Result of filtering
Result of filtering with
with Butterworth filter
Butterworth filter of
of order 2 and cutoff
order 2 and cutoff
radius 230
radius 80
Butterworth Lowpass Filter (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Original
image
Result of filtering
with Butterworth filter
of order 2 and cutoff
radius 5
Butterworth Lowpass Filter (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
as:
2 2
D ( u ,v ) / 2 D0
H (u , v) e
Gaussian Lowpass Filters (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Result of filtering
Original with Gaussian filter
image with cutoff radius 5
Result of filtering
Result of filtering
with Butterworth
with ideal low pass
filter of order 2
filter of radius 15
and cutoff radius
15
Result of filtering
with Gaussian
filter with cutoff
radius 15
Lowpass Filtering Examples
blemishes in a photograph
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Spectrum of Processed
original image image
Sharpening in the Frequency Domain
0 if D(u , v) D0
H (u , v)
1 if D(u , v) D0
where D0 is the cut off distance as before
Ideal High Pass Filters (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
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
Butterworth High Pass Filters (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Results of Results of
Butterworth Butterworth
high pass high pass
filtering of filtering of
order 2 with order 2 with
D0 = 15 D0 = 80
D 2 ( u ,v ) / 2 D0 2
H (u , v) 1 e
where D0 is the cut off distance as before
Gaussian High Pass Filters (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Results of Results of
Gaussian Gaussian
high pass high pass
filtering with filtering with
D0 = 15 D0 = 80
Results of ideal
high pass filtering
with D0 = 15
Highpass Filter Comparison
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Results of Butterworth
high pass filtering of order
2 with D0 = 15
Highpass Filter Comparison
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Results of Gaussian
high pass filtering with
D0 = 15
Highpass Filter Comparison
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Results of ideal
high pass filtering
with D0 = 15
Highpass Filter Comparison
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Results of Butterworth
high pass filtering of order
2 with D0 = 15
Highpass Filter Comparison
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Results of Gaussian
high pass filtering with
D0 = 15
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
High frequency
emphasis result Original image Highpass Filtering Example
Inverse DFT of
Laplacian in the Laplacian in the
frequency domain frequency domain
Laplacian In The Frequency Domain
domain
in the frequency
2-D image of Laplacian
spatial filter
left compared to
the image on the
Zoomed section of
Frequency Domain Laplacian Example
Original Laplacian
image filtered
image
Laplacian
Enhanced
image scaled
image
Fast Fourier Transform