Professional Documents
Culture Documents
Chapter 4
Image Enhancement in the
Frequency Domain
(contd. ..)
If we look carefully, we can see that it contains 3 main values: the DCvalue and, since the Fourier image is symmetrical to its center, two
points corresponding to the frequency of the stripes in the original image.
Note that the two points lie on a horizontal line through the image center,
because the image intensity in the spatial domain changes the most if we
go along it horizontally.
(a)f(x,y)
(b)F(u,y)
(c)F(u,v)
shift
DFT
DFT
0.25 * A
+ 0.75 * B
DFT
DFT
Sine wave
Rectangle
Its DFT
Its DFT
2D Gaussian
function
Impulses
Its DFT
Its DFT
f(x,y)(-1)x+y
g(x,y)(-1)x+y
12
Lowpass filter
Highpass filter
1 if D(u, v) D0
H (u, v)
0 if D(u, v) D0
where D(u,v) : the distance from point (u,v) to the center of ther
frequency rectangle
D(u, v) (u M / 2) 2 (v N / 2)
1
2 2
frequency
spatial
spatial
spatial
1
H (u, v)
2n
1 D(u, v) / D0
Butterworth Lowpass
Filters (BLPFs)
n=2
D0=5,15,30,80,and 230
n=1
n=2
n=5
n=20
H (u, v) e
D 2 ( u ,v ) / 2 D02
Gaussian Lowpass
Filters (FLPFs)
D0=5,15,30,80,and 230
0
H (u, v)
1
if D(u, v) D0
if D(u, v) D0
1
H (u, v)
2n
1 D0 / D(u, v)
H (u, v) 1 e
D 2 ( u ,v ) / 2 D02
Highpass Filters
Spatial Representations
H hp (u, v) H lp (u, v)
Ideal highpass filter
0
H (u, v)
1
if D(u, v) D0
if D(u, v) D0
1
2n
1 D0 / D(u, v)
D 2 ( u ,v ) / 2 D02
Original image
After histogram
equalisation
High frequency
emphasis result
H (u, v) (u ) 2 (v ) 2
2
2
Frequency
domain
Spatial domain
g ( x, y ) f ( x , y ) 2 f ( x, y )
where
2 f ( x, y ) : the Laplacian - filtered
image in the spatial domain
For display
purposes only
Implementation
Some Additional Properties of the 2D Fourier Transform
Separability
Implementation
More on Periodicity
Convolution
f ( x ) h( x )
1
M
M 1
f ( m) h ( x m)
m 0
extend
extend
Homomorphic filtering
A simple image model
f(x,y): the intensity is called the gray level for
monochrome image
f(x, y) = i(x, y).r(x, y)
0 < i(x, y) < inf, the illumination
0< r(x, y) < 1, the reflectance
59
Homomorphic filters
Affect low and high frequencies differently
Compress the low frequency dynamic range
Enhance the contrast in high frequency 61
g H >1
g L <1
H (u, v) = (g H - g L )[1 - e
- c ( D 2 ( u ,v ) / D02 )
62
]+gL
63
Summary
We examined image enhancement in the
frequency domain
The Fourier series & the Fourier transform
Image Processing in the frequency domain
Image smoothing
Image sharpening
Point processing
Mask processing
(spatial filters)
Image negatives
Log transformations
Power-law
transformations
Contrast stretching
Gray-level slicing
Bit-plane slicing
Histogram processing
Histogram
equalization
*Histogram matching
(specification)
Arithmetic/logic
operations
Image averaging
Average, weighted
average
Order statistics (e.g.
median)
65
Frequency domain
filters
Unsharp masking
High-boost filters
Derivative filters
The Laplacian
The Gradient
Sharpening filters
(highlight details)
Unsharp masking
High-boost filters
Derivative filters - The
Laplacian
Homomorphic filtering