Lecture05 Enhancement Frequency
Lecture05 Enhancement Frequency
Processing
3
Why FT? – 2
4
Another example
5
Fourier series
6
Fourier series (cont’)
7
Fourier transform
(0,0) u
nfF v
8
9
1-D Fourier transform
Fourier transform:
DFT
Inverse FT:
Complex form
Fourier spectrum
Power spectrum
(spectral density)
Phase angle
10
2-D Fourier transform
CFT
DFT
11
Understanding and implementing
Fourier transform
(0,0) y
(0,0) v
x u
12
f(x,y) |F(u,v)|
13
Understanding and implementing
Fourier transform
According to “translation”
y
(0,0) y (0,0)
0 -255 v
-0 255 (0,0)
x x
u
f(x,y) f(x,y)(-1)x+y |F(u-M/2,v-N/2)|
14
Understanding and implementing
Fourier transform
15
Block diagram of FTIFT
f(x,y)(-1)x+y g(x,y)(-1)x+y
16
17
Impulse transforms
18
Typical transforms
Gaussian hump
Gaussian hump
Rectangular (square
aperture) sinc
Pillbox (circular
aperture) jinc
19
Typical transforms
Gaussian ridge
Line impulse
20
Reference
21
2D FT pairs
22
Important properties of FT
23
Linearity
x1(t) y1(t)
Linear
x2(t) y2(t)
System
24
Separability
Row Column
transform transform
f(x, y) F(x, v) F(u, v)
25
Translation
26
Periodicity and Conjugate
symmetry
Periodicity
Conjugate symmetry
27
Example
28
Rotation
29
Averaging
30
Convolution
32
Correlation (cont’)
33
Practical issues – Implement
convolution in frequency domain
In spatial domain
In frequency domain
– f*g F(f)G(g)
– Phase? Mag?
– How to pad?
34
35
36
37
38
Difference image
from convolution
in the spatial
domain
Convolution in
the frequency
domain
Conv. spatially 39
Different enhancement
approaches
Lowpass filter
Highpass filter
Homomorphic filter
40
Lowpass filtering
Ideal filter
– D(u, v): distance from point (u, v) to the origin
– cutoff frequency (D0)
– nonphysical
– radially symmetric about the origin
Butterworth filter
41
42
Power ratio
99.9699.6599.0497.84
43
Highpass filter
Ideal filter
Butterworth filter
44
45
46
Example
47
The Laplacian in the frequency domain
48
UM in the frequency domain
49
Homomorphic filtering
50
Homomorphic filter (cont’)
51
Homomorphic filter (cont’)
53
54
Homomorphic filter - example
55
Point processing Mask processing • Frequency domain
filters
(spatial filters)
Simple gray level Smoothing filters (blur • Smoothing filters (blur
transformations details) details)
• Ideal lowpass filter
– Image negatives – Average, weighted • Butterworth lowpass
– Log transformations average • Gaussian lowpass
– Power-law – Order statistics (e.g. • Sharpening filters (highlight
transformations median) details)
– Contrast stretching – Unsharp masking
– High-boost filters
– Gray-level slicing Sharpening filters – Derivative filters - The
– Bit-plane slicing (highlight details) Laplacian
– Ideal highpass filter
Histogram processing – Unsharp masking
– Butterworth highpass filter
– Histogram – High-boost filters – Gaussian highpass filter
equalization – Derivative filters • Homomorphic filtering
– *Histogram matching • The Laplacian
(specification) • The Gradient
Arithmetic/logic
operations
– Image averaging
56
FFT and IFFT
57