SlideShare a Scribd company logo
RESTORATION OF BLURRED IMAGES
CS-467 Digital Image Processing
1
Image Degradation and Restoration
2
© 1992-2008 R. C. Gonzalez & R.E. Woods
Image Deblurring: Problem
Statement
Mathematically a variety of image capturing principles can be
described by the Fredholm integral of the first kind
where is a point-spread function (PSF) of an optical
system, is a function of a real object, is
an additive noise, and is an observed signal.
( , )(( , () , ),) f xg x h x y dt yy xy η= +∫
( , )h x y
( , )f x y
( , )g x y
( , )x yη
Point-Spread Function (PSF)
4
Convolution
• If the PSF h is a linear and shift-invariant
function, then the degraded image is
expressed in the spatial domain by its
convolution with the spatial representation of
the PSF h
5
( , ) ( , ), ) , )( (fg x h x y y yx xy η= ∗ +
Frequency Domain Representation
• An equivalent frequency domain
representation is as follows
Where is the Fourier transform of ,
is the Fourier transform of ,
is the Fourier transform of ,
and is the Fourier transform of
6
(( , ) ,( ) ), , )(FG u Nu vH u v u vv= +
( , )G u v
( , )H u v
( , )F u v
( , )N u v
( , )g x y
( , )h x y
( , )f x y
( , )x yη
Problem statement: capturing
• Mathematically a variety of capturing principles can be
described by the Fredholm integral of the first kind
• where h(x,y) is a point-spread function (PSF) of a system,
q(x,y) is a function of a real object and g(x,y) is an observed
signal.
2
( , ) ( , ) ( , ) , ,
R
g x y h x y f x y dxdy x y R= ∈∫
Micro
scopy
∈
Photo
7
Degradation in Spatial and
Frequency Domain
• In the spatial domain, image degradation (blurring) is
observed as fuzziness, small image details and edges look
unsharpened and many of them become even
undistinguishable
• In the frequency domain, image degradation (blurring)
significantly affects a power spectrum (as a result of
convolution with PSF whose Fourier transform contains
many zeros, some frequencies “disappear” from the Fourier
transform of a blurred image)
• At the same time, symmetric PSFs almost do not affect a
phase spectrum (particularly its low and medium frequency
area is almost not affected, while a high frequency area is
just slightly affected)
8
Degradation in Spatial and Frequency Domain
log Z
True Image Horizontal
Motion blur
Gaussian
blur
Images and log of their Power Spectra
True Image Rectangular
(2D motion) blur
Optical
Defocus blur
Degradation in Spatial and Frequency Domain
log ZImages and log of their Power Spectra
Examples of Different PSFs
The Gaussian PSF:
is a parameter (variance)
The uniform linear motion:
t is a parameter (the length of motion)
The uniform optical defocus:
t is a parameter
(the size of smoothing area)
2 2
2 2
1
( , ) exp
2
x y
h x y
πσ σ
 +
= − 
 
2 2
1
, / 2, cos sin ,
( , )
otherwise,0,
x y t x y
h x y t
φ φ

 + < =
= 

2
1
, , ,
( , ) 2 2
otherwise,0,
t t
x y
h x y t

< <
= 

2
σ
Examples of Different PSFs
PSF in spatial domain
PSF in frequency domain
Gaussian Motion Defocus
Degradation in Spatial and Frequency Domain
13
True Image Motion blur,
6 pixels
Motion blur,
10 pixels
Degradation in Spatial and Frequency Domain
14
True Image Gaussian
blur, var=2
Gaussian
blur, var=5
Atmosphere Turbulence Blur
Simulated by Gaussian Model
15
© 1992-2008 R. C. Gonzalez & R.E. Woods
“Ideal” Frequency Domain Model
• Assuming that the effect of noise is negligible
(which, in fact, is never possible for real-world
images), we may use a simpler frequency
domain model
• Respectively, to restore our image, we have to
solve this equation for
16
( , ) ( , ) ( , )G u v H u v F u v=
( , )F u v
( , )ˆ( , )
( , )
G u v
F u v
H u v
=
“Ideal” Model in Spatial Domain
• Still assuming that the effect of noise is
negligible, in spatial domain we obtain
• Respectively,
• This is equation is called “deconvolution”.
Neither in spatial, nor in frequency domain it
can be solved directly in the straightforward
way due to zeros contained in h and H.
17
( , ) ( , ) ( , )g x y h x y f x y= ∗
( )
1
( , ) ( , ) ( , )f x y g x y h x y
−
= ∗
Methods of Solving Deconvolution
Problem
• A necessary condition to restore a blurred
image is to know the exact PSF model – to
know function h(x,y) and its spectrum H(u,v).
• The alternative is to apply a blind
deconvolution technique, which is resulted in
the long iterative process whose results can be
good or not good. So it is “50/50”. Thus, it is
preferable to identify PSF
18
Methods of Solving Deconvolution
Problem – Inverse Filtering
• Inverse filtering – deconvolution equation is
going to be solved in the frequency domain.
Those frequencies where H(u,v)=0, are not
involved in the operation
• Disadvantage: just a light blur can be removed
in this way
19
( , )ˆ( , )
( , )
G u v
F u v
H u v
=
Methods for PSF identification
• To identify PSF, if an image is even slightly
corrupted by noise, it is necessary to use machine
learning tools (a neural network, a support vector
machine, etc.) and to analyze a power spectrum
• A problem is that when an image is noisy, there
are no actual zeros in its power spectrum,
because the Fourier transform of an image
contains the one of noise as an additive
component
20
Methods of Solving Deconvolution
Problem – Wiener Filtering
• Wiener filtering is a minimum Mean Square
Error Filtering. The error is
• The filter in frequency domain is determined
as follows
• Disadvantages: and are
unknown and can just be estimated
21
{ }2 2ˆ( )e E f f= −
2
2
2
2
( , )1ˆ( , ) ( , )
( , ) ( , )
( , )
( , )
H u v
F u v G u v
H u v N u v
H u v
F u v
 
 
 
=  
 +
 
 
( , )N u v ( , )F u v
Wiener Filtering for
White Noise Case
• Wiener filtering for white noise case is as
follows
• Where K is a power spectrum of noise, which
is a constant for white noise
• Disadvantage: noise is not always white
22
2
2
( , )1ˆ( , ) ( , )
( , ) ( , )
H u v
F u v G u v
H u v H u v K
 
=  
+  
Restoration: Examples
23
© 1992-2008 R. C. Gonzalez & R.E. Woods
Methods of Solving Deconvolution
Problem – Regularization Filtering
• Regularization filtering is reduced to solving
the optimization problem
in the frequency domain
• The filter in frequency domain is determined
as follows
where * stands for complex conjugation and α
is the regularization parameter
24
2 2
ˆg Hf η− =
*
2
( , )ˆ( , ) ( , )
( , )
H u v
F u v G u v
H u v α
 
=  
+  
Restoration of an image after
deconvolution is done
• After restoring an image Fourier transform
by solving a deconvolution problem, an image
can be restored by finding its inverse Fourier
transform
25
ˆ( , )F u v
( ) ( )1ˆ ˆ, ( , )f x y F u v−
= Φ
Evaluation of the quality of a
restored image
• The quality of restoration can be evaluated as
usually in terms of PSNR
• In image deblurring there are also two other
measures, which are preferable:
the blurred signal-to-noise ratio (BSNR) and
the improved signal-to-noise-ratio (ISNR)
26
BSNR and ISNR
• BSNR
where is a blurred image without noise, is a
restored image, M is the number of pixels, and is
the noise variance
• ISNR
where is an original image, is a degraded
image, and is a restored image
27
( )
2
10 2
ˆ
10 log
g f
BSNR
Mσ
−
= ⋅
g ˆf
2
σ
( )
( )
2
10 2
10 log
ˆ
f g
ISNR
f f
−
= ⋅
−
f g
ˆf

More Related Content

What's hot

Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)
VARUN KUMAR
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
ABIRAMI M
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
lalithambiga kamaraj
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
Ahmed Daoud
 
08 frequency domain filtering DIP
08 frequency domain filtering DIP08 frequency domain filtering DIP
08 frequency domain filtering DIP
babak danyal
 
Edge Detection using Hough Transform
Edge Detection using Hough TransformEdge Detection using Hough Transform
Edge Detection using Hough Transform
Mrunal Selokar
 
Noise
NoiseNoise
Noise
Astha Jain
 
Elements of visual perception
Elements of visual perceptionElements of visual perception
Elements of visual perception
Dr INBAMALAR T M
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
kavitha muneeshwaran
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
Karthika Ramachandran
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniques
sakshij91
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
asodariyabhavesh
 
Image pre processing - local processing
Image pre processing - local processingImage pre processing - local processing
Image pre processing - local processingAshish Kumar
 
Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency Domain
Amnaakhaan
 
Wavelet Transform.ppt
Wavelet Transform.pptWavelet Transform.ppt
Wavelet Transform.ppt
ssuser637f3e1
 
Chapter 5 Image Processing: Fourier Transformation
Chapter 5 Image Processing: Fourier TransformationChapter 5 Image Processing: Fourier Transformation
Chapter 5 Image Processing: Fourier Transformation
Varun Ojha
 
Image transforms
Image transformsImage transforms
Image transforms
11mr11mahesh
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
A B Shinde
 
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
Hemantha Kulathilake
 

What's hot (20)

Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)
 
Spatial filtering
Spatial filteringSpatial filtering
Spatial filtering
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
08 frequency domain filtering DIP
08 frequency domain filtering DIP08 frequency domain filtering DIP
08 frequency domain filtering DIP
 
Edge Detection using Hough Transform
Edge Detection using Hough TransformEdge Detection using Hough Transform
Edge Detection using Hough Transform
 
Noise
NoiseNoise
Noise
 
Elements of visual perception
Elements of visual perceptionElements of visual perception
Elements of visual perception
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniques
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
 
Image pre processing - local processing
Image pre processing - local processingImage pre processing - local processing
Image pre processing - local processing
 
Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency Domain
 
Wavelet Transform.ppt
Wavelet Transform.pptWavelet Transform.ppt
Wavelet Transform.ppt
 
Chapter 5 Image Processing: Fourier Transformation
Chapter 5 Image Processing: Fourier TransformationChapter 5 Image Processing: Fourier Transformation
Chapter 5 Image Processing: Fourier Transformation
 
Image transforms
Image transformsImage transforms
Image transforms
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
 
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
 

Viewers also liked

Handbook of crisis and emergency management
Handbook of crisis and emergency managementHandbook of crisis and emergency management
Handbook of crisis and emergency managementWael Sharba
 
Image Deblurring using L0 Sparse and Directional Filters
Image Deblurring using L0 Sparse and Directional FiltersImage Deblurring using L0 Sparse and Directional Filters
Image Deblurring using L0 Sparse and Directional Filters
CSCJournals
 
Iaetsd deblurring of noisy or blurred
Iaetsd deblurring of noisy or blurredIaetsd deblurring of noisy or blurred
Iaetsd deblurring of noisy or blurred
Iaetsd Iaetsd
 
Gpr seminar by emmaual
Gpr seminar by emmaualGpr seminar by emmaual
Gpr seminar by emmaual
emmanualroy
 
modulation transfer function (MTF)
modulation transfer function (MTF)modulation transfer function (MTF)
modulation transfer function (MTF)
AJAL A J
 
Face recognization using artificial nerual network
Face recognization using artificial nerual networkFace recognization using artificial nerual network
Face recognization using artificial nerual network
Dharmesh Tank
 
Detection and recognition of face using neural network
Detection and recognition of face using neural networkDetection and recognition of face using neural network
Detection and recognition of face using neural networkSmriti Tikoo
 
Ground Penetrating Radar : Basic and Applications for Civil Engineering
Ground Penetrating Radar : Basic and Applications for Civil EngineeringGround Penetrating Radar : Basic and Applications for Civil Engineering
Ground Penetrating Radar : Basic and Applications for Civil Engineering
Korea Expressway Corporation
 
[G4]image deblurring, seeing the invisible
[G4]image deblurring, seeing the invisible[G4]image deblurring, seeing the invisible
[G4]image deblurring, seeing the invisibleNAVER D2
 
Audio spotlighting ppt
Audio spotlighting pptAudio spotlighting ppt
Audio spotlighting ppt
Nagappa Kannur
 
Deblurring of Digital Image PPT
Deblurring of Digital Image PPTDeblurring of Digital Image PPT
Deblurring of Digital Image PPTSyed Atif Naseem
 
ground penetrating radar
ground penetrating radarground penetrating radar
ground penetrating radar
Gauravate
 
GROUND PENETRATING RADAR(GPR) ppt
GROUND PENETRATING RADAR(GPR) ppt GROUND PENETRATING RADAR(GPR) ppt
GROUND PENETRATING RADAR(GPR) ppt
Himanshu Yadav
 
Face recognition using neural network
Face recognition using neural networkFace recognition using neural network
Face recognition using neural networkIndira Nayak
 
Face recognition using artificial neural network
Face recognition using artificial neural networkFace recognition using artificial neural network
Face recognition using artificial neural networkSumeet Kakani
 
Image segmentation ppt
Image segmentation pptImage segmentation ppt
Image segmentation pptGichelle Amon
 
Face recognition ppt
Face recognition pptFace recognition ppt
Face recognition pptSantosh Kumar
 

Viewers also liked (18)

Handbook of crisis and emergency management
Handbook of crisis and emergency managementHandbook of crisis and emergency management
Handbook of crisis and emergency management
 
Image Deblurring using L0 Sparse and Directional Filters
Image Deblurring using L0 Sparse and Directional FiltersImage Deblurring using L0 Sparse and Directional Filters
Image Deblurring using L0 Sparse and Directional Filters
 
Iaetsd deblurring of noisy or blurred
Iaetsd deblurring of noisy or blurredIaetsd deblurring of noisy or blurred
Iaetsd deblurring of noisy or blurred
 
Gpr seminar by emmaual
Gpr seminar by emmaualGpr seminar by emmaual
Gpr seminar by emmaual
 
modulation transfer function (MTF)
modulation transfer function (MTF)modulation transfer function (MTF)
modulation transfer function (MTF)
 
Face recognization using artificial nerual network
Face recognization using artificial nerual networkFace recognization using artificial nerual network
Face recognization using artificial nerual network
 
Detection and recognition of face using neural network
Detection and recognition of face using neural networkDetection and recognition of face using neural network
Detection and recognition of face using neural network
 
Ground Penetrating Radar : Basic and Applications for Civil Engineering
Ground Penetrating Radar : Basic and Applications for Civil EngineeringGround Penetrating Radar : Basic and Applications for Civil Engineering
Ground Penetrating Radar : Basic and Applications for Civil Engineering
 
[G4]image deblurring, seeing the invisible
[G4]image deblurring, seeing the invisible[G4]image deblurring, seeing the invisible
[G4]image deblurring, seeing the invisible
 
Audio spotlighting ppt
Audio spotlighting pptAudio spotlighting ppt
Audio spotlighting ppt
 
Deblurring of Digital Image PPT
Deblurring of Digital Image PPTDeblurring of Digital Image PPT
Deblurring of Digital Image PPT
 
ground penetrating radar
ground penetrating radarground penetrating radar
ground penetrating radar
 
GROUND PENETRATING RADAR(GPR) ppt
GROUND PENETRATING RADAR(GPR) ppt GROUND PENETRATING RADAR(GPR) ppt
GROUND PENETRATING RADAR(GPR) ppt
 
Face recognition using neural network
Face recognition using neural networkFace recognition using neural network
Face recognition using neural network
 
Face recognition using artificial neural network
Face recognition using artificial neural networkFace recognition using artificial neural network
Face recognition using artificial neural network
 
Image segmentation ppt
Image segmentation pptImage segmentation ppt
Image segmentation ppt
 
Audio spotlighting
Audio spotlightingAudio spotlighting
Audio spotlighting
 
Face recognition ppt
Face recognition pptFace recognition ppt
Face recognition ppt
 

Similar to Lecture 11

Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
Md Shabir Alam
 
Image restoration and reconstruction
Image restoration and reconstructionImage restoration and reconstruction
Image restoration1
Image restoration1Image restoration1
Image restoration1
moorthim7
 
Image Degradation & Resoration
Image Degradation & ResorationImage Degradation & Resoration
Image Degradation & Resoration
Sanjay Saha
 
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)
Shajun Nisha
 
Chap6 image restoration
Chap6 image restorationChap6 image restoration
Chap6 image restoration
ShardaSalunkhe1
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
Wael Sharba
 
Image processing 2
Image processing 2Image processing 2
Image processing 2
Taymoor Nazmy
 
04 cie552 image_filtering_frequency
04 cie552 image_filtering_frequency04 cie552 image_filtering_frequency
04 cie552 image_filtering_frequency
Elsayed Hemayed
 
Image denoising with unknown Non-Periodic Noises
Image denoising with unknown Non-Periodic NoisesImage denoising with unknown Non-Periodic Noises
Image denoising with unknown Non-Periodic Noises
SakshiAggarwal85
 
Digital Image Processing - Image Restoration
Digital Image Processing - Image RestorationDigital Image Processing - Image Restoration
Digital Image Processing - Image Restoration
Mathankumar S
 
Image Restitution Using Non-Locally Centralized Sparse Representation Model
Image Restitution Using Non-Locally Centralized Sparse Representation ModelImage Restitution Using Non-Locally Centralized Sparse Representation Model
Image Restitution Using Non-Locally Centralized Sparse Representation Model
IJERA Editor
 
Ch5_Restoration (1).pdf
Ch5_Restoration (1).pdfCh5_Restoration (1).pdf
Ch5_Restoration (1).pdf
AlaaElhaddad3
 
DIP -Unit 3 ppt.pptx
DIP -Unit 3 ppt.pptxDIP -Unit 3 ppt.pptx
DIP -Unit 3 ppt.pptx
1DA20CS085Nithyashre
 
chapter-2 SPACIAL DOMAIN.pptx
chapter-2 SPACIAL DOMAIN.pptxchapter-2 SPACIAL DOMAIN.pptx
chapter-2 SPACIAL DOMAIN.pptx
AyeleFeyissa1
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
Wael Sharba
 
Non-Blind Deblurring Using Partial Differential Equation Method
Non-Blind Deblurring Using Partial Differential Equation MethodNon-Blind Deblurring Using Partial Differential Equation Method
Non-Blind Deblurring Using Partial Differential Equation Method
Editor IJCATR
 

Similar to Lecture 11 (20)

Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
 
Image restoration and reconstruction
Image restoration and reconstructionImage restoration and reconstruction
Image restoration and reconstruction
 
Image restoration1
Image restoration1Image restoration1
Image restoration1
 
Image Degradation & Resoration
Image Degradation & ResorationImage Degradation & Resoration
Image Degradation & Resoration
 
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)
 
Unit3 dip
Unit3 dipUnit3 dip
Unit3 dip
 
Chap6 image restoration
Chap6 image restorationChap6 image restoration
Chap6 image restoration
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Image processing 2
Image processing 2Image processing 2
Image processing 2
 
04 cie552 image_filtering_frequency
04 cie552 image_filtering_frequency04 cie552 image_filtering_frequency
04 cie552 image_filtering_frequency
 
Image denoising with unknown Non-Periodic Noises
Image denoising with unknown Non-Periodic NoisesImage denoising with unknown Non-Periodic Noises
Image denoising with unknown Non-Periodic Noises
 
Digital Image Processing - Image Restoration
Digital Image Processing - Image RestorationDigital Image Processing - Image Restoration
Digital Image Processing - Image Restoration
 
In2414961500
In2414961500In2414961500
In2414961500
 
Image Restitution Using Non-Locally Centralized Sparse Representation Model
Image Restitution Using Non-Locally Centralized Sparse Representation ModelImage Restitution Using Non-Locally Centralized Sparse Representation Model
Image Restitution Using Non-Locally Centralized Sparse Representation Model
 
Ch5_Restoration (1).pdf
Ch5_Restoration (1).pdfCh5_Restoration (1).pdf
Ch5_Restoration (1).pdf
 
DIP -Unit 3 ppt.pptx
DIP -Unit 3 ppt.pptxDIP -Unit 3 ppt.pptx
DIP -Unit 3 ppt.pptx
 
chapter-2 SPACIAL DOMAIN.pptx
chapter-2 SPACIAL DOMAIN.pptxchapter-2 SPACIAL DOMAIN.pptx
chapter-2 SPACIAL DOMAIN.pptx
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
 
Non-Blind Deblurring Using Partial Differential Equation Method
Non-Blind Deblurring Using Partial Differential Equation MethodNon-Blind Deblurring Using Partial Differential Equation Method
Non-Blind Deblurring Using Partial Differential Equation Method
 

More from Wael Sharba

Project 8
Project 8Project 8
Project 8
Wael Sharba
 
Project 7
Project 7Project 7
Project 7
Wael Sharba
 
Project 6
Project 6Project 6
Project 6
Wael Sharba
 
Project 5
Project 5Project 5
Project 5
Wael Sharba
 
Project 4
Project 4Project 4
Project 4
Wael Sharba
 
Project 2
Project 2Project 2
Project 2
Wael Sharba
 
Project 1
Project 1Project 1
Project 1
Wael Sharba
 
Project 3
Project 3Project 3
Project 3
Wael Sharba
 
Project 9
Project 9Project 9
Project 9
Wael Sharba
 
Lecture 14
Lecture 14Lecture 14
Lecture 14
Wael Sharba
 
Lecture 13
Lecture 13Lecture 13
Lecture 13
Wael Sharba
 
Lecture 12
Lecture 12Lecture 12
Lecture 12
Wael Sharba
 
Lecture 9
Lecture 9Lecture 9
Lecture 9
Wael Sharba
 
Lecture 8
Lecture 8Lecture 8
Lecture 8
Wael Sharba
 
Lecture 7
Lecture 7Lecture 7
Lecture 7
Wael Sharba
 
Lecture 6
Lecture 6Lecture 6
Lecture 6
Wael Sharba
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
Wael Sharba
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
Wael Sharba
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
Wael Sharba
 
Microsoft system center 1
Microsoft system center 1Microsoft system center 1
Microsoft system center 1Wael Sharba
 

More from Wael Sharba (20)

Project 8
Project 8Project 8
Project 8
 
Project 7
Project 7Project 7
Project 7
 
Project 6
Project 6Project 6
Project 6
 
Project 5
Project 5Project 5
Project 5
 
Project 4
Project 4Project 4
Project 4
 
Project 2
Project 2Project 2
Project 2
 
Project 1
Project 1Project 1
Project 1
 
Project 3
Project 3Project 3
Project 3
 
Project 9
Project 9Project 9
Project 9
 
Lecture 14
Lecture 14Lecture 14
Lecture 14
 
Lecture 13
Lecture 13Lecture 13
Lecture 13
 
Lecture 12
Lecture 12Lecture 12
Lecture 12
 
Lecture 9
Lecture 9Lecture 9
Lecture 9
 
Lecture 8
Lecture 8Lecture 8
Lecture 8
 
Lecture 7
Lecture 7Lecture 7
Lecture 7
 
Lecture 6
Lecture 6Lecture 6
Lecture 6
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Microsoft system center 1
Microsoft system center 1Microsoft system center 1
Microsoft system center 1
 

Recently uploaded

Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
goswamiyash170123
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
DhatriParmar
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 

Recently uploaded (20)

Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 

Lecture 11

  • 1. RESTORATION OF BLURRED IMAGES CS-467 Digital Image Processing 1
  • 2. Image Degradation and Restoration 2 © 1992-2008 R. C. Gonzalez & R.E. Woods
  • 3. Image Deblurring: Problem Statement Mathematically a variety of image capturing principles can be described by the Fredholm integral of the first kind where is a point-spread function (PSF) of an optical system, is a function of a real object, is an additive noise, and is an observed signal. ( , )(( , () , ),) f xg x h x y dt yy xy η= +∫ ( , )h x y ( , )f x y ( , )g x y ( , )x yη
  • 5. Convolution • If the PSF h is a linear and shift-invariant function, then the degraded image is expressed in the spatial domain by its convolution with the spatial representation of the PSF h 5 ( , ) ( , ), ) , )( (fg x h x y y yx xy η= ∗ +
  • 6. Frequency Domain Representation • An equivalent frequency domain representation is as follows Where is the Fourier transform of , is the Fourier transform of , is the Fourier transform of , and is the Fourier transform of 6 (( , ) ,( ) ), , )(FG u Nu vH u v u vv= + ( , )G u v ( , )H u v ( , )F u v ( , )N u v ( , )g x y ( , )h x y ( , )f x y ( , )x yη
  • 7. Problem statement: capturing • Mathematically a variety of capturing principles can be described by the Fredholm integral of the first kind • where h(x,y) is a point-spread function (PSF) of a system, q(x,y) is a function of a real object and g(x,y) is an observed signal. 2 ( , ) ( , ) ( , ) , , R g x y h x y f x y dxdy x y R= ∈∫ Micro scopy ∈ Photo 7
  • 8. Degradation in Spatial and Frequency Domain • In the spatial domain, image degradation (blurring) is observed as fuzziness, small image details and edges look unsharpened and many of them become even undistinguishable • In the frequency domain, image degradation (blurring) significantly affects a power spectrum (as a result of convolution with PSF whose Fourier transform contains many zeros, some frequencies “disappear” from the Fourier transform of a blurred image) • At the same time, symmetric PSFs almost do not affect a phase spectrum (particularly its low and medium frequency area is almost not affected, while a high frequency area is just slightly affected) 8
  • 9. Degradation in Spatial and Frequency Domain log Z True Image Horizontal Motion blur Gaussian blur Images and log of their Power Spectra
  • 10. True Image Rectangular (2D motion) blur Optical Defocus blur Degradation in Spatial and Frequency Domain log ZImages and log of their Power Spectra
  • 11. Examples of Different PSFs The Gaussian PSF: is a parameter (variance) The uniform linear motion: t is a parameter (the length of motion) The uniform optical defocus: t is a parameter (the size of smoothing area) 2 2 2 2 1 ( , ) exp 2 x y h x y πσ σ  + = −    2 2 1 , / 2, cos sin , ( , ) otherwise,0, x y t x y h x y t φ φ   + < = =   2 1 , , , ( , ) 2 2 otherwise,0, t t x y h x y t  < < =   2 σ
  • 12. Examples of Different PSFs PSF in spatial domain PSF in frequency domain Gaussian Motion Defocus
  • 13. Degradation in Spatial and Frequency Domain 13 True Image Motion blur, 6 pixels Motion blur, 10 pixels
  • 14. Degradation in Spatial and Frequency Domain 14 True Image Gaussian blur, var=2 Gaussian blur, var=5
  • 15. Atmosphere Turbulence Blur Simulated by Gaussian Model 15 © 1992-2008 R. C. Gonzalez & R.E. Woods
  • 16. “Ideal” Frequency Domain Model • Assuming that the effect of noise is negligible (which, in fact, is never possible for real-world images), we may use a simpler frequency domain model • Respectively, to restore our image, we have to solve this equation for 16 ( , ) ( , ) ( , )G u v H u v F u v= ( , )F u v ( , )ˆ( , ) ( , ) G u v F u v H u v =
  • 17. “Ideal” Model in Spatial Domain • Still assuming that the effect of noise is negligible, in spatial domain we obtain • Respectively, • This is equation is called “deconvolution”. Neither in spatial, nor in frequency domain it can be solved directly in the straightforward way due to zeros contained in h and H. 17 ( , ) ( , ) ( , )g x y h x y f x y= ∗ ( ) 1 ( , ) ( , ) ( , )f x y g x y h x y − = ∗
  • 18. Methods of Solving Deconvolution Problem • A necessary condition to restore a blurred image is to know the exact PSF model – to know function h(x,y) and its spectrum H(u,v). • The alternative is to apply a blind deconvolution technique, which is resulted in the long iterative process whose results can be good or not good. So it is “50/50”. Thus, it is preferable to identify PSF 18
  • 19. Methods of Solving Deconvolution Problem – Inverse Filtering • Inverse filtering – deconvolution equation is going to be solved in the frequency domain. Those frequencies where H(u,v)=0, are not involved in the operation • Disadvantage: just a light blur can be removed in this way 19 ( , )ˆ( , ) ( , ) G u v F u v H u v =
  • 20. Methods for PSF identification • To identify PSF, if an image is even slightly corrupted by noise, it is necessary to use machine learning tools (a neural network, a support vector machine, etc.) and to analyze a power spectrum • A problem is that when an image is noisy, there are no actual zeros in its power spectrum, because the Fourier transform of an image contains the one of noise as an additive component 20
  • 21. Methods of Solving Deconvolution Problem – Wiener Filtering • Wiener filtering is a minimum Mean Square Error Filtering. The error is • The filter in frequency domain is determined as follows • Disadvantages: and are unknown and can just be estimated 21 { }2 2ˆ( )e E f f= − 2 2 2 2 ( , )1ˆ( , ) ( , ) ( , ) ( , ) ( , ) ( , ) H u v F u v G u v H u v N u v H u v F u v       =    +     ( , )N u v ( , )F u v
  • 22. Wiener Filtering for White Noise Case • Wiener filtering for white noise case is as follows • Where K is a power spectrum of noise, which is a constant for white noise • Disadvantage: noise is not always white 22 2 2 ( , )1ˆ( , ) ( , ) ( , ) ( , ) H u v F u v G u v H u v H u v K   =   +  
  • 23. Restoration: Examples 23 © 1992-2008 R. C. Gonzalez & R.E. Woods
  • 24. Methods of Solving Deconvolution Problem – Regularization Filtering • Regularization filtering is reduced to solving the optimization problem in the frequency domain • The filter in frequency domain is determined as follows where * stands for complex conjugation and α is the regularization parameter 24 2 2 ˆg Hf η− = * 2 ( , )ˆ( , ) ( , ) ( , ) H u v F u v G u v H u v α   =   +  
  • 25. Restoration of an image after deconvolution is done • After restoring an image Fourier transform by solving a deconvolution problem, an image can be restored by finding its inverse Fourier transform 25 ˆ( , )F u v ( ) ( )1ˆ ˆ, ( , )f x y F u v− = Φ
  • 26. Evaluation of the quality of a restored image • The quality of restoration can be evaluated as usually in terms of PSNR • In image deblurring there are also two other measures, which are preferable: the blurred signal-to-noise ratio (BSNR) and the improved signal-to-noise-ratio (ISNR) 26
  • 27. BSNR and ISNR • BSNR where is a blurred image without noise, is a restored image, M is the number of pixels, and is the noise variance • ISNR where is an original image, is a degraded image, and is a restored image 27 ( ) 2 10 2 ˆ 10 log g f BSNR Mσ − = ⋅ g ˆf 2 σ ( ) ( ) 2 10 2 10 log ˆ f g ISNR f f − = ⋅ − f g ˆf