Академический Документы
Профессиональный Документы
Культура Документы
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Yun Q. Shi
ECE, NJIT
10-14-2011
Chapter 5
Image Restoration and Reconstruction
Introduction
1
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
2
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
A degraded image
An input image An image estimate
g ( x, y ) = h ( x , y ) ⊗ f ( x , y ) + η ( x, y )
G (u , v) = H (u , v) • F (u , v) + N (u , v)
The frame of reference
© 1992–2008 R. C. Gonzalez & R. E. Woods
3
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Remark: In Sections 5.2, 5.3 and 5.4, H is assumed to be the identity operator.
Chapter 5
Image Restoration and Reconstruction
2. Noise Models
4
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
5
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Spatial properties:
• Spatial periodicity of noise
• Spatial dependency between noise and image
o Noise is assumed herein to be independent of spatial coordinates
Or, there is no correlation between pixel values and the values of
noise components.
o This assumption is invalid in some applications: X-ray, nuclear-
medicine imaging and so on.
Frequency properties:
• Frequency content of noise in the Fourier sense
o For example, if the Fourier spectrum of noise is constant, the noise is
usually called white noise.
Chapter 5
Image Restoration and Reconstruction
6
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
7
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Raleigh noise
2 −( z − a)2 / b z = a + πb / 4
( z − a )e for z ≥ a
p( z ) = b
0 b( 4 − π )
for z < a σ2 =
4
Chapter 5
Image Restoration and Reconstruction
a b z b −1 − az b
e for z ≥ 0 z= , a ∈ R + , b ∈ Ζ+
p ( z ) = (b − 1)! a
0 for z < 0
b
σ2 = 2
a
8
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Exponential noise
1
z=
ae − az for z ≥ 0 a
p( z ) =
0 for z < 0 σ2 =
1
a2
Chapter 5
Image Restoration and Reconstruction
Uniform noise
a+b
1 z=
if a ≤ z ≤ b 2
p( z ) = b − a (b − a)2
0 otherwise σ = 12
2
9
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
10
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Figure 5.3 shows a test pattern well suited for illustrating the
noise models just discussed,
– composed of simple constant areas that span the gray scale from
black to near white in only three increments
– facilitating visual analysis of the characteristics of the various
noise components added to the image
Chapter 5
Image Restoration and Reconstruction
11
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
12
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
13
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
14
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
g ( x , y ) = h ( x, y ) ⊗ f ( x, y ) + η ( x, y ) G (u , v) = H (u , v ) • F (u , v ) + N (u , v)
DFT
15
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
16
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
17
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
18
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
19
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
20
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
Median filter
fˆ ( x, y ) = median{g ( s, t )}
( s , t )∈S xy
21
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
Midpoint filter 1
fˆ ( x, y ) = max {g ( s, t )} + min {g ( s, t )}
2 ( s ,t )∈S xy ( s ,t )∈S xy
• representing the restored pixel value at (x,y) by the midpoint between the
darkest and brightest points in the filter window
• working best for randomly distributed noise, e.g., Gaussian or uniform noise
22
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
23
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
24
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
25
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
26
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
27
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
28
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
Band-reject
Band-pass
Notch
29
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
Bandreject Filters
30
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
31
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
H BP (u , v) = 1 − H BR (u , v)
32
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
33
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
Notch Filters
H NP (u, v) = 1 − H NR (u , v)
34
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
35
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
36
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
37
10/15/2011
Chapter 5
Image Restoration and Reconstruction
3) For derivation: read p. 341 of the text)
σ 2(x, y) denotes the local variance of the restored estimate
a b
∑ ∑ {[ g ( x + s, y + t ) − w( x, y )η ( x + s, y + t )] − [ g ( x, y ) − w( x, y )η ( x, y )]}
1
σ 2 ( x, y ) = 2
(2a + 1)(2b + 1) s = − a t = −b
∂σ 2 ( x, y )
to obtain w( x, y ), solving =0 (i.e., minimizing σ 2(x, y) )
∂w( x, y )
Chapter 5
Image Restoration and Reconstruction
38
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
39
10/15/2011
Chapter 5
Image Restoration and Reconstruction
additivity (superposition)
homogeneity (scaling) } H [af1 ( x, y ) + bf 2 ( x, y )] = aH [ f1 ( x, y )] + bH [ f 2 ( x, y )]
Chapter 5
Image Restoration and Reconstruction
40
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
41
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
42
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Estimation by Experimentation
only if the equipment similar to that used to acquire the
degraded image is available
1) Obtain image similar to the degraded one by varying system settings until
achieving approximately the same degradation level as that of degraded image
2) With such a settings, obtain the impulse response of the degradation by
imaging an impulse (small dot of light) with an arbitrary strength A (A is the FT
of the impulse)
Chapter 5
Image Restoration and Reconstruction
43
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
In some case, the model can even take into account environmental
conditions that cause degradation.
44
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
45
10/15/2011
Chapter 5
Image Restoration and Reconstruction
T
g ( x, y ) = ∫ f [ x − x0 (t ), y − y0 (t )]dt G (u , v) = F (u , v) ∫0 e − j 2π [ux0 (t ) + vy0 (t )]dt = F (u , v ) H (u , v )
T
0
ℑ
Eq.5.6-8
Chapter 5
Image Restoration and Reconstruction
T
H (u , v) = sin[π (ua + vb)]e− jπ (ua + vb )
π (ua + vb)
46
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
47
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Inverse Filtering
If H is given or estimated, the simplest approach to restoration is
direct inverse filtering
G (u , v ) N (u , v)
G (u , v) = H (u , v) • F (u , v) + N (u , v ) Fˆ (u , v) = L F (u , v) +
•1 / H (u , v)
H ( u , v ) H (u, v)
(Eq. 5.7-1) (Eq. 5.7-2)
Even if H completely known, F cannot be exactly recovered
because N is not known.
If H has zero or very small values, the ratio N/H may predominate
− One way out is to limit the filter frequencies to values near the
origin
© 1992–2008 R. C. Gonzalez & R. E. Woods
Chapter 5
Image Restoration and Reconstruction
48
10/15/2011
Chapter 5
Image Restoration and Reconstruction
H (u , v ) = e − k [( u − M / 2 )
2
+ ( v − N / 2 ) 2 ]5 / 6
Chapter 5
Image Restoration and Reconstruction
49
10/15/2011
Chapter 5
Image Restoration and Reconstruction
{
e 2 = E ( f − fˆ ) 2 }
© 1992–2008 R. C. Gonzalez & R. E. Woods
Chapter 5
Image Restoration and Reconstruction
1 H (u , v)
2
F (u , v) =
ˆ G (u , v ) (Eq. 5.8-2)
H (u , v) H (u , v) 2 + Sη (u , v) / S f (u , v)
H ∗ (u , v) = complex conjugate of H (u , v)
H (u , v) = H ∗ (u , v) H (u , v)
2
2
Sη (u , v) = N (u , v) = power spectrum density of the noise
2
S f (u , v) = F (u , v) = power spectrum density of the undegraded image
50
10/15/2011
Chapter 5
Image Restoration and Reconstruction
M −1 N −1 M −1 N −1
∑ ∑ F (u, v)
2
∑ ∑ fˆ ( x, y)2
u =0 v = 0 x=0 y =0
SNR =
∑ ∑ [ f ( x, y ) − fˆ ( x, y )]
M −1 N −1
or M −1 N −1
2 2
∑ ∑ N (u, v)
u = 0 v =0 x=0 y =0
Chapter 5
Image Restoration and Reconstruction
1 H (u , v )
2
(Eq. 5.8-6)
F (u , v) =
ˆ G (u , v )
H (u , v ) H (u , v ) 2 + K
51
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
52
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
53
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
54
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Constrained optimization
• Minimization of image smoothness:
M −1 N −1 2
C= ∑∑ ∇
x =0 y =0
2
f ( x, y )
Chapter 5
Image Restoration and Reconstruction
55
10/15/2011
Chapter 5
Image Restoration and Reconstruction
Chapter 5
Image Restoration and Reconstruction
56
10/15/2011
Chapter 5
Image Restoration and Reconstruction
57