Mod 5 Image Restoration
Mod 5 Image Restoration
Image Restoration
Image Restoration
• g(x,y)=f(x,y)+ (x,y)
• g(x,y)=h(x,y)*f(x,y)
• g(x,y)=h(x,y)*f(x,y)+ (x,y)
A Model of the Image
Degradation/Restoration Process
A Model of the Image
Degradation/Restoration Process
Noise
Noise Model
1 −( z − ) 2 / 2 2
p( z ) = e
2
•70% values of z fall in the range [(-σ),(+σ)]
•95% values of z fall in the range [(-2σ),(+2σ)]
Gaussian Noise
Gaussian Noise
Gaussian Noise
H.R. Pourreza
Other Noise Models
•Rayleigh noise
2
( z − a )e − ( z − a ) / b for z a
2
p( z ) = b
0 for z a
•Exponential noise
ae − az for z 0
p( z ) =
• 0 for z 0
• The mean and variance of
this density are given by
a
Other Noise Models
•Uniform noise
1
if a z b
• p ( z ) = b−a
0 otherwise
• The mean and variance of this
density are given by
(b − a ) 2
= (a + b) / 2 and 2 =
12
Other Noise Models
•Impulse (salt-and-pepper) noise
Pa for z = a
p( z ) = Pb for z = b
0 otherwise
If the degradation has zero or very small values, then the ratio
N/H could easily dominate our estimation of F .
e 2 = E[( f − fˆ ) 2 ]
S f (u , v) H (u, v) + S (u, v)
2
H * (u , v)
= G (u, v)
H (u , v) + S (u , v) / S f (u, v)
2
1 H (u, v)
2
= G (u, v)
H (u , v) H (u , v) + S (u , v) / S f (u , v)
2
Constrained Least Squares Filtering
Vector-matrix form
g ( x , y ) = h ( x , y ) * f ( x , y ) + ( x, y )
⚫ g = Hf + η
⚫ g , f , η : MN 1
⚫ H : MN MN
Minimize
M −1 N −1
C = f ( x, y) 2 2
x =0 y =0
⚫ Subject to
2
ˆ
g − Hf = η
2
The solution
H * (u , v )
Fˆ (u, v) = G(u, v)
H (u, v) + P(u, v)
2 2
r = g − Hfˆ
⚫ Adjust so that
r = η a
2 2
⚫ Computation
M −1 N −1
r = r 2 ( x, y)
2
x =0 y =0
M −1 N −1
1
m =
MN
( x, y)
x =0 y =0
( x, y) − m
M −1 N −1 2
1
=
2
MN x =0 y =0
η = MN [ 2 + m2 ]
2
⚫ Algorithm
⚫ 1: Specify an initial value of
⚫ 2: Compute
3: Stop if r = η a is satisfied;
2 2
⚫
otherwise return to Step 2 after
increasing if r η − a or
2 2
decreasing r η +. a
2 2
⚫ if