DIP - Lecture-11 - 12 - 13 - RKJ - Image Restoration
DIP - Lecture-11 - 12 - 13 - RKJ - Image Restoration
Processing
Lecture
Dr. Rajib Kumar Jha
Associate Professor
Notes-2021 Depart of Electrical Engineering
Indian Institute of Technology Patna
[email protected]
1
Lecture-11-13
Image Restoration
2
Contents
• Introduction
• Image Restoration vs. Image Enhancement
• Image degradation/restoration model
• Image Formation process and degradation model
• Degradation model in continuous functions and its
discrete formulation
• Estimation of degradation model
– Observation
– Experimentation
– Mathematical Modeling
• Restoration Techniques
– Inverse filtering
– Minimum Mean square error (Wiener filtering)
– Constrained Least square filtering
What is Image Restoration
What is Image Restoration
What is Image Restoration
What is Image Restoration
Enhancement/Restoration
Image Enhancement:
– particularly using a low pass filter or using smoothing masks in
spatial domain noise content of the image (high frequency
component) gets reduced. It is the subset of image restoration.
Image Restoration:
– A process which tries to restore an image which has been
degraded by some knowledge of a degradation function; this
operation is known as image restoration.
– In case of image restoration, image degradation model is very-
very important.
– Approach is: Estimate the model which has degraded the
image, once the degradation model is known; then we have to
apply the inverse process to recover the desired image.
1. input image f (x, y) is degraded by a degradation function H;
2. output of f(x,y)*h(x,y) is added to an additive noise eta (x, y);
3. The final degraded output image is g (x, y).
Image Restoration
g(x,y) =H[f(x,y)] +𝜑 𝑥, 𝑦
g(x,y)=f(x,y)*h(x,y)+h(x,y)
G(u,v)=F(u,v)H(u,v)+N(u,v)
If linear, position-invariant system
Linear, position-invariant degradation
Properties of the degradation function H
• Linear operator H or Superposition theorem
– H[af1(x,y)+bf2(x,y)]=aH[f1(x,y)]+bH[f2(x,y)]
• Position(space)-invariant system
– H[f(x,y)]=g(x,y)
– H[f(x-a, y-b)]=g(x-a, y-b)
1 𝑥=0 𝑦=0
𝛿 𝑥, 𝑦 =
0 𝑂𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
1 𝑥 = 𝑥0 ; 𝑦 = 𝑦0
𝛿 𝑥 − 𝑥0 , 𝑦 − 𝑦0 =
0 𝑂𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
+∞
𝑓(𝑥, 𝑦) 𝛿 𝑥 − 𝑥0 , 𝑦 − 𝑦0 𝑑𝑥 𝑑𝑦 = 𝑓(𝑥0 , 𝑦0 )
−∞
Degradation model: Continuous function
𝑓 𝑥 : 𝑥 = 0,1, … … … . . 𝐴 − 1
ℎ(𝑥): 𝑥 = 0,1, … … … . . 𝐵 − 1
𝑓𝑒 (0) 𝑔𝑒 (0)
𝑓𝑒 (1) 𝑔𝑒 (1)
. .
𝑓= 𝑔=
. .
. .
𝑓𝑒 (𝑀 − 1) 𝑔𝑒 (𝑀 − 1)
𝐻0 𝐻𝑀−1 … … … … … . . … … . . 𝐻1
𝐻1 𝐻0 … … … … … … … . … … . . . . 𝐻2
.
𝐻= .
.
.
𝐻𝑀−1 𝐻𝑀−2 … … … … … … … . . 𝐻0
Discrete Formulation in 2-D
ℎ𝑒 𝑗, 0 ℎ𝑒 𝑗, 𝑀 − 1 … … … … … . . … … . . ℎ𝑒 (𝑗, 1)
ℎ𝑒 𝑗, 1 ℎ𝑒 𝑗, 0 … … … … … … … . … … . . . . ℎ𝑒 (𝑗, 2)
.
𝐻𝑗 = .
.
.
ℎ𝑒 𝑗, 𝑀 − 1 ℎ𝑒 𝑗, 𝑀 − 2 … … … … … … . . ℎ𝑒 (𝑗, 0)
g ( x, y) f x x0 (t ), y y0 (t )dt
T
where g ( x, y) is the blurred image
0
T j 2 ux0 ( t ) vy0 ( t )
G (u, v) F (u, v) exp dt where
0
T j 2 ux0 ( t ) vy0 ( t )
H (u, v) e dt is degradation function
0
Estimation of degradation functions
(model bases)
T
H (u, v) sin (ua vb) e j ( ua vb )
(ua vb)
Estimation by Modelling
E
G(u,v)=F(u,v)H(u,v)
G(u,v)=F(u,v)H(u,v)+N(u,v)
Inverse filtering
Restoration Inverse Filtering
Inverse filtering
5/ 6
Degradation function k ( u M / 2)2 ( v N / 2)2
H (u, v) e
Curtain of noise
Cutting off values of the ratio outside a radius of 40, 70,85.
Restoration by Inverse Filtering on
Motion Blur Image
Inverse Filtering doesn’t give good
Result on Motion Blur image
Inverse filtering doesn’t give good
result on Motion Blur image
• For any integer value of (ua + vb), the corresponding
component H (u, v) will be equal to 0 and for nearly integer
values of (ua + vb), term H(u, v) is going to be very-very low.
White noise
Wiener filtering
Constrained Least Squares Filtering
• Performance of the Wiener filtering depends upon the
correct estimation of the value of K, that is, the accurate
estimation of the power spectrum of both the original
undegraded image and noise.
2 1 𝑀−1 𝑁−1 2
𝜎𝑛 = 𝑥=0 𝑦=0 𝑛 𝑥, 𝑦 − 𝑚𝑛
𝑀𝑁
1 𝑀−1 𝑁−1
𝑚𝑛 = 𝑥=0 𝑦=0 𝑛 𝑥, 𝑦
𝑀𝑁
2
𝑛 = 𝑀𝑁 𝜎𝑛 2 − 𝑚𝑛 2
• A common source of
periodic noise in an image is
from electrical interference
during the image capturing
process.