AIDP 05 DP HP Reconstruction
AIDP 05 DP HP Reconstruction
2D convolution
• Sharpening - Highpass Filtering
• Smoothing - Lowpass Filtering
• mean filter (Gaussian)
• median filter
• separable median
Image filtering in space domain
2D convolution
*
4
=
=
Filtering in the space domain:
MxN=3x3
ℎ 𝑛1 , 𝑛2
𝑦 𝑛1 , 𝑛2 𝑥 𝑛1 , 𝑛2
Sharpening – High-pass Filtering
• Image sharpening can be achieved by a high-
pass (HP) filtering process, which
– attenuates the low-frequency components
– without disturbing high-frequency information.
HP filtering in space domain ??
4 =
HP filtering –sharpening in space domain
filtered image;
DC coefficient removed
original
h(5,5) Gaussian
Median filter
- medián – mean value estimation
Median
Advantage: preserve the edges in the image
at the same time reduces random noise
Application:
• window of selected size moves along the
image
• median of image intensity in the window is (n1-1,n2-1) (n1, n2-1) (n1+1 n2-1)
assigned to the cental position
y
Median – calculation:
5 6 10 5 6 10
15 55 8 15 10 8
25 4 11 25 4 11
(a) (b)
- we arange intensity values according to size => the middle value is medián:
4, 5, 6, 8, 10, 11, 15, 55
LP filtering –smoothing in space domain
2 different signals
f(n)
filtrered signals:
mean
h(n) size 5
median
h(n) size 5
LP filtering –smoothing in space domain
original
(a) (b)
LP filtering –smoothing in space domain
Separable median filtering?
original
(c) (d)
LP filtering –smoothing in space domain
x(n) y(n)
system
X(k) Y(k)
Image reconstruction
Reduction of image blurring
PSF – point
spread function
𝑏 𝑛1 , 𝑛2
- image out of focus
-image blurred by
planar motion
-atmospheric
turbulence
𝑔 𝑛1 , 𝑛2 = 𝑓 𝑛1 , 𝑛2 ∗ 𝑏 𝑛1 , 𝑛2
Reduction of image blurring
simplifying: ( ) (
G x , y = F x , y B x , y )( )
where
(
B x , y ) =
1 T / 2 − j x x0 (t ) − j y y0 (t )
e
T t = −T / 2
e dt
DFT
( ) (
G x , y = F x , y B x , y )( )
g (n1 , n2 ) = f (n1 , n2 ) b(n1 , n2 )
𝑔 𝑛1 , 𝑛2 = 𝑓 𝑛1 , 𝑛2 ∗ 𝑏 𝑛1 , 𝑛2
where:
𝑓 𝑛1 , 𝑛2 - original image
𝑏 𝑛1 , 𝑛2 - blur function
𝑔 𝑛1 , 𝑛2 - degraded image
𝐺 𝜔1 , 𝜔2
𝐹 𝜔1 , 𝜔2 =
𝐵 𝜔1 , 𝜔2
𝐹 𝜔1 , 𝜔2 𝐵 𝜔1 , 𝜔2 𝐺 𝜔1 , 𝜔2
𝐹 𝜔1 , 𝜔2 - spectrum of original image
𝐺 𝜔1 , 𝜔2 = 𝐹 𝜔1 , 𝜔2 ∙ 𝐵 𝜔1 , 𝜔2 𝐵 𝜔1 , 𝜔2 - spectrum of blur function
𝐺 𝜔1 , 𝜔2 - spectrum of degraded image
𝐹 𝜔1 , 𝜔2 - spectrum of reconstructed image
Image restoration - deconvolution
𝑔 𝑛1 , 𝑛2 = 𝑓 𝑛1 , 𝑛2 ∗ 𝑏 𝑛1 , 𝑛2
𝐷𝐹𝑇
𝐺 𝜔1 , 𝜔2 = 𝐹 𝜔1 , 𝜔2 ∙ 𝐵 𝜔1 , 𝜔2
𝐺 𝜔1 , 𝜔2
𝐹 𝜔1 , 𝜔2 =
𝐵 𝜔1 , 𝜔2
Inverse filter:
1
𝐻 𝜔1 , 𝜔2 =
𝐵 𝜔1 , 𝜔2
𝐹 𝜔1 , 𝜔2 𝐵 𝜔1 , 𝜔2 𝐺 𝜔1 , 𝜔2
𝐺 𝜔1 , 𝜔2
𝑓መ 𝑛1 , 𝑛2 = 𝐼𝐷𝐹𝑇
DECONVOLUTION – Inverse filtering 𝐵 𝜔1 , 𝜔2
𝐺 𝜔1 , 𝜔2
𝐹 𝜔1 , 𝜔2 =
𝐵 𝜔1 , 𝜔2
1
if 𝐵 𝜔1 , 𝜔2 is very small -> is large -> small noise in frequency regions,
𝐵 𝜔1 ,𝜔2
1
where is very large, may be significantly emphasised
𝐵 𝜔1 ,𝜔2
solution / lessening the noise sensitivity:
1
- to limit the frequency response to some threshold 𝛾 ∶
𝐵 𝜔1 ,𝜔2
1 1
B( , ) ,
B(1 , 2 )
H (1 , 2 ) = 1 2
( )
B 1 , 2 , inde
B(1 , 2 )
Image restoration - deconvolution
BLIND DECONVOLUTION
Summary