Professional Documents
Culture Documents
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com
(5.1 1)
www.imageprocessingbook.com
www.imageprocessingbook.com
www.imageprocessingbook.com
www.imageprocessingbook.com
www.imageprocessingbook.com
Rayleigh noise
The PDF of Rayleigh noise is given by
2
2
( z a) / b
( z a)e
p( z) = b
for z a
(5.2 2)
for z < a
= a+
(5 .2 3)
(5 .2 4 )
b/4
b(4 )
4
www.imageprocessingbook.com
a b z b 1 az
e
p ( z ) = (b 1)!
for z 0
for z < 0
(5.2 5)
Chapter 5
Image Restoration
www.imageprocessingbook.com
www.imageprocessingbook.com
Exponential noise
The PDF of exponential noise is given by
ae az
p( z ) =
0
for z 0
for z < 0
(5.2 8)
Uniform noise
The PDF of uniform noise is given by
1
p(z) = b a
0
2002 R. C. Gonzalez & R. E. Woods
if a z b
otherwise
(5.2 11)
www.imageprocessingbook.com
p( z ) = Pb
0
for z = a
for z = b
otherwise
(5.2 14)
www.imageprocessingbook.com
Impulse noise values will resemble salt-andpepper granules randomly distributed over the
image.
Impulse noise generally is digitized as extreme
(pure black or white) values in an image.
Chapter 5
Image Restoration
www.imageprocessingbook.com
www.imageprocessingbook.com
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com
= zi p ( zi )
www.imageprocessingbook.com
(5.2 15)
zi S
= ( zi ) p ( zi )
2
(5.2 16)
zi S
Chapter 5
Image Restoration
www.imageprocessingbook.com
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com
www.imageprocessingbook.com
1
f ( x, y ) =
g ( s, t )
mn ( s ,t )S xy
(5.3 3)
www.imageprocessingbook.com
f ( x, y ) = g ( s, t )
( s ,t )S xy
1
mn
(5.3 4)
www.imageprocessingbook.com
f ( x, y ) =
mn
( s ,t )S xy
1
g ( s, t )
(5.3 5)
www.imageprocessingbook.com
f ( x, y ) =
g ( s, t )Q +1
( s ,t )S xy
( s ,t )S xy
g ( s, t )
(5.3 6)
Chapter 5
Image Restoration
www.imageprocessingbook.com
www.imageprocessingbook.com
f ( x, y ) = median { g ( s, t )}
( s ,t )S xy
(5.3 7)
Chapter 5
Image Restoration
www.imageprocessingbook.com
www.imageprocessingbook.com
f ( x, y ) = max { g ( s, t )}
( s ,t )S xy
(5.3 8)
f ( x, y ) = min { g ( s, t )}
( s ,t )S xy
(5.3 9)
Chapter 5
Image Restoration
www.imageprocessingbook.com
www.imageprocessingbook.com
Midpoint filter
1
f ( x, y ) = max { g ( s, t )} + min { g ( s, t )}
( s ,t )S xy
2 ( s ,t )S xy
(5.3 10)
www.imageprocessingbook.com
1
f ( x, y ) =
mn d
( s ,t )S xy
g r ( s, t )
(5.3 11)
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com
www.imageprocessingbook.com
www.imageprocessingbook.com
2
f ( x, y ) = g ( x, y ) 2 [ g ( x, y ) mL ]
L
(5.3 12)
Chapter 5
Image Restoration
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com
www.imageprocessingbook.com
Level A:
A1 = zmed zmin
A2 = zmed zmax
If Al > 0 AND A2 < 0, Go to level B
Else increase the window size
If window size Smax repeat level A
Else output Zxy
www.imageprocessingbook.com
Level B:
B1 = z xy zmin
B 2 = z xy zmax
If Bl > 0 AND B2 < 0, output zxy
Else output Zmed
www.imageprocessingbook.com
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com
www.imageprocessingbook.com
<
if
D
u
v
D
1
(
,
)
0
w
w
H (u , v) = 0 if D0 D(u , v) < D0 +
2
2
if
D
u
v
D
>
1
(
,
)
0
(5.4 1)
www.imageprocessingbook.com
(5.4 2)
1 D 2 ( u , v ) D02
2 D ( u , v ) w
(5.4 3)
Chapter 5
Image Restoration
www.imageprocessingbook.com
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com
www.imageprocessingbook.com
H bp (u , v) = 1 H br (u , v)
(5.4 4)
Chapter 5
Image Restoration
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com
www.imageprocessingbook.com
2
e = E f f
(5 .8 1)
H (u , v) S f (u , v)
F (u, v) =
G (u, v)
2
S f (u , v) H (u , v) + S (u, v)
H (u , v)
(5.8 2)
=
G (u , v)
2
H (u, v) + S (u , v) / S f (u , v)
2
1
H (u , v)
=
G (u , v)
2
H (u , v) H (u, v) + S (u , v) / S f (u , v)
2
1
H (u, v)
F (u , v) =
G (u , v)
2
H (u , v) H (u , v) + k
www.imageprocessingbook.com
(5.8 3)
Chapter 5
Image Restoration
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com
www.imageprocessingbook.com
(5.11 1)
y = s ( x, y )
(5.11 2)
'
'
www.imageprocessingbook.com
r ( x, y ) = c1 x + c2 y + c3 xy + c4
(5.11 3)
s ( x, y ) = c5 x + c6 y + c7 xy + c8
(5.11 4)
x = c1 x + c2 y + c3 xy + c4
(5.11 5)
y = c5 x + c6 y + c7 xy + c8
(5.11 6)
'
'
Chapter 5
Image Restoration
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com
Chapter 5
Image Restoration
www.imageprocessingbook.com