Beruflich Dokumente
Kultur Dokumente
165
2003
Cosmetic processing
noisy
blurry
MOTIVATION
166
2003
The High-Pass (HP) component contains the small area variations, which determine
the sharpness and neighborhood contrast (micro-contrast)
The Low-Pass (LP) component contains the large area variations, which determine
the local-to-global contrast (macro-contrast) of the image
image ( m, n ) = LP ( m, n ) + HP ( m, n )
image(m,n)
167
7 x 7 LPF
3 x 3 LPF
LP(m,n)
HP(m,n)
2003
3 x 3 example
image ( m, n ) =
=
=
=
1/9x
LPF
168
1/9x
-1
+8
-1
-1
-1
-1
-1
-1
-1
HPF
LP ( m, n ) + HP ( m, n )
LPF imag e ( m, n ) + HPF imag e ( m, n )
[ LPF + HPF ] imag e ( m, n )
( m, n ) imag e ( m, n )
2003
30
30
index
40
40
50
1x3 HP
input
50
60
60
50
100
150
index
169
-50
20
20
-50
10
10
20
40
60
80
100
120
1x3 LP
input
140
50
100
150
20
40
60
80
100
120
140
10
10
20
20
40
40
50
1x7 HP
input
50
60
60
index
30
30
index
1x7 LP
input
2003
DN
DN
DN
DN
HPFs
LPFs
170
0
-100
500
1000
1500
2000
2500
3000
3500
0
-100
200
400
600
800
1000
0
-100
200
400
600
800
1000
-50
-50
-50
150
150
100
150
HP-component
100
LP-component
100
original
50
DN
50
DN
50
DN
Example histograms
200
200
200
2003
number of pixels
number of pixels
number of pixels
2 2 2
1 9 2 +25 2
2 2 2
1 1 1
1 9 1 +17 1
1 1 1
3 3 3
1 9 3 +33 3
3 3 3
K=3
171
2003
K=2
K=1
HB ( m, n ;K ) = original ( m, n ) + K HP ( m, n )
= ( K + 1 )original ( m, n ) K LP ( m, n ) , K > 0
Parametric example
K=3
K=2
K=1
original
172
noise
amplification
trade-off with
sharpening
2003
original
Must clip GL at 0
and 255 to
maximize
contrast
HBFs increase
DN range
173
2003
min-max stretch
HB with K = 1
-53 < DN < 310
174
clipped
2003
min-max stretch
HB with K = 2
-132 < DN < 417
175
clipped
2003
min-max stretch
HB with K = 3
-218 < DN < 525
176
clipped
2003
unstretched
HB original = K x HP
HB with K = 3
177
histogram-equalized
2003
1 +2 1
2nd
derivative
1 0
0 +1
1 0 0
0 +2 0
0 0 1
1
+1
1
+2
1
m=n
0 0 1
0 +2 0
1 0 0
0 1
+1 0
sin
0
-sin-cos cos
azimuthal
178
1 +1
1st
derivative
direction
Directional HPFs
2003
179
derivative direction
2003
h net = h 1 h 2
= f h net
= f ( h1 h2 )
g = ( f h1 ) h2
180
1/9x
hnet
6
9
4
6
2
3
symmetric
1/9x
h2
1/9x
h1
Example
2003
181
2003
To apply along rows, the weights within each window row must be
constant (but do not have to be equal from row-to-row)
Box-Filter Algorithm
(along rows)
f ( k, 2 )h ( m k, 2 )
f ( k, 3 )h ( m k, 3 )
C m2 =
C m3 =
g ( m, 2 ) = C m1 + C m2 + C m3
f ( k, 1 )h ( m k, 1 )
C m1 =
column sums
182
= g ( m, 2 ) C m1 + C m4
g ( m, 3 ) = C m2 + C m3 + C m4
2003
183
2003
2 adds
(w1 - 1) adds
w1 multiplies
w1 x w2 filter
7 total/output pixel
2 adds (Cm4)
3 multiplies (Cm4)
3 x 3 filter
2
2
2
3
symmetric
1
1
1
=
1/25x
h1
1/35x
hnet
1
1
symmetric
1
1
1
1
184
1/9x
1
1
1
1
symmetric
h2
h3
2003
185
Linear
2003
k=0l=0
f ( k, l )h c ( m k, n l )
186
Equivalent to:
h c ( m, n ) = h ( m moduloM , n moduloN )
where
g cir ( m, n ) =
M 1N 1
Circular (periodic)
2003
187
2003