Академический Документы
Профессиональный Документы
Культура Документы
(Chapter 4)
Frequency Domain
Spatial Domain
Major filter categories
Original signal
Low-pass filtered
High-pass filtered
Band-pass filtered
Band-stop filtered
Low-pass filters
(i.e., smoothing filters)
time
domain
frequency
domain
Band-pass filters
frequency time
domain domain
Band-stop filters
Band-pass Band-stop
Frequency Domain Methods
M N Image, f
Centered Gaussian Spectrum of Gp = (-1)x+y * real ( IDFT of HFp )
LPF of size P Q Product HFp
Example
Example
The summation is taken over values of (u,v) that lie inside circle
or on boundary
Example
Fig (b) indicates severe blurring
that shows most of the sharp detail
information in the picture is
contained in 13 % power removed
by the filter.
Blurring is controlled by D0
r=78 (99%)
r=8 (90%)
Butterworth LP filter (BLPF)
Ideal Butterworth
D0=10, 30,
60, 160, n=2
460
Gaussian LP filter (GLPF)
frequency
domain spatial
domain
Butterworth LPF
Difference of Gaussians:
Frequency Spatial Domains
spatial
domain
frequency
domain
High-pass filter!
Filtering in the Spatial and Frequency
Domains: Example
600 x 600
Important to preserve
odd symmetry (i.e., H(u,v)
should be imaginary!)
Sobel
(read details on page
268)
Filtering in the Spatial and Frequency
Domains: Example (contd)
Results
spatial domain frequency domain
filtering filtering
Example: smoothing by GLPF (1)
Examples of smoothing by GLPF (2)
D0=100
D0=80
39 7/7/2017
Image Sharpening using frequency domain filters
H HP (u, v) 1 H LP (u, v)
Ideal HPF
Butterworth
n=2
Comparison: BHPF and GHPF
Butterworth D0=30,60,100
Gaussian
n=2
Example: High-pass Filtering and
Thresholding
for Fingerprint Image Enhancement
BHPF
(order 4 with a cutoff
frequency 50)
Frequency Domain Analysis of
Unsharp Masking and Highboost
Filtering
g ( x, y ) f ( x, y) k * g mask ( x, y)
Highboost filtering: f ( x, y ) k ( f ( x, y) f LP ( x, y))
(variation) (k 1) f ( x, y ) kf LP ( x, y )
g ( x, y) f ( x, y) k ( f ( x, y) f LP ( x, y))
G (u , v) f ( x, y ) k * f ( x, y ) hLP ( x, y ) f ( x, y )
F (u , v) k * F (u , v) H (u , v) F (u , v)
LP
1 k * 1 H (u , v) F (u , v)
LP
1 k * H HP (u , v) F (u , v)
Highboost Filter
so: g(x,y) 1 1 k * H HP (u , v ) F (u , v )
High boost and High-Frequency-Emphasis
Filters
g ( x, y ) 1 1 k * H HP (u, v) F (u, v) g ( x, y ) 1 k1 k2 * H HP (u , v) F (u , v)
k 0 k1 0 and k2 0
H HP (u, v) k1 k2 * H HP (u, v)
Example
GHPF
Gaussian
Filter:
D0=40
High-emphasis High-emphasis
and hist. equal.
High-Frequency
Emphasis filtering
Using Gaussian filter
k1=0.5, k2=0.75
Homomorphic filtering
i(x,y): illumination
r(x,y): reflection
Idea:
(1) Take
(2) Apply FT
or
(3) Apply H(u,v)
Steps of Homomorphic Filtering (contd)
or
H (u, v) ( H L ) 1 e
c ( u 2 v2 )/ D02
L
L 0.25
H 2
c 1
L 0.25
D0 80
H 2
c 1
D0 80