SlideShare une entreprise Scribd logo
1  sur  27
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersSuhaila Afzana
 
Digital Image Processing: Image Enhancement in the Frequency Domain
Digital Image Processing: Image Enhancement in the Frequency DomainDigital Image Processing: Image Enhancement in the Frequency Domain
Digital Image Processing: Image Enhancement in the Frequency DomainMostafa G. M. Mostafa
 
08 frequency domain filtering DIP
08 frequency domain filtering DIP08 frequency domain filtering DIP
08 frequency domain filtering DIPbabak danyal
 
Enhancement in spatial domain
Enhancement in spatial domainEnhancement in spatial domain
Enhancement in spatial domainAshish Kumar
 
Lect 03 - first portion
Lect 03 - first portionLect 03 - first portion
Lect 03 - first portionMoe Moe Myint
 
Enhancement in frequency domain
Enhancement in frequency domainEnhancement in frequency domain
Enhancement in frequency domainAshish Kumar
 
Image processing SaltPepper Noise
Image processing SaltPepper NoiseImage processing SaltPepper Noise
Image processing SaltPepper NoiseAnkush Srivastava
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersKarthika Ramachandran
 
Homomorphic filtering
Homomorphic filteringHomomorphic filtering
Homomorphic filteringGautam Saxena
 
Lec 07 image enhancement in frequency domain i
Lec 07 image enhancement in frequency domain iLec 07 image enhancement in frequency domain i
Lec 07 image enhancement in frequency domain iAli Hassan
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Shajun Nisha
 
Histogram equalization
Histogram equalizationHistogram equalization
Histogram equalization11mr11mahesh
 
Digital Image Processing: Digital Image Fundamentals
Digital Image Processing: Digital Image FundamentalsDigital Image Processing: Digital Image Fundamentals
Digital Image Processing: Digital Image FundamentalsMostafa G. M. Mostafa
 

Tendances (20)

Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain Filters
 
Digital Image Processing: Image Enhancement in the Frequency Domain
Digital Image Processing: Image Enhancement in the Frequency DomainDigital Image Processing: Image Enhancement in the Frequency Domain
Digital Image Processing: Image Enhancement in the Frequency Domain
 
08 frequency domain filtering DIP
08 frequency domain filtering DIP08 frequency domain filtering DIP
08 frequency domain filtering DIP
 
Sharpening spatial filters
Sharpening spatial filtersSharpening spatial filters
Sharpening spatial filters
 
Enhancement in spatial domain
Enhancement in spatial domainEnhancement in spatial domain
Enhancement in spatial domain
 
Lect 03 - first portion
Lect 03 - first portionLect 03 - first portion
Lect 03 - first portion
 
Enhancement in frequency domain
Enhancement in frequency domainEnhancement in frequency domain
Enhancement in frequency domain
 
Image processing SaltPepper Noise
Image processing SaltPepper NoiseImage processing SaltPepper Noise
Image processing SaltPepper Noise
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
 
Homomorphic filtering
Homomorphic filteringHomomorphic filtering
Homomorphic filtering
 
Lec 07 image enhancement in frequency domain i
Lec 07 image enhancement in frequency domain iLec 07 image enhancement in frequency domain i
Lec 07 image enhancement in frequency domain i
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
 
Unit ii
Unit iiUnit ii
Unit ii
 
Color image processing
Color image processingColor image processing
Color image processing
 
Spatial domain and filtering
Spatial domain and filteringSpatial domain and filtering
Spatial domain and filtering
 
Histogram equalization
Histogram equalizationHistogram equalization
Histogram equalization
 
Digital Image Processing: Digital Image Fundamentals
Digital Image Processing: Digital Image FundamentalsDigital Image Processing: Digital Image Fundamentals
Digital Image Processing: Digital Image Fundamentals
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
SPATIAL FILTER
SPATIAL FILTERSPATIAL FILTER
SPATIAL FILTER
 
Image compression
Image compressionImage compression
Image compression
 

En vedette

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 FiltersCSCJournals
 
Iaetsd deblurring of noisy or blurred
Iaetsd deblurring of noisy or blurredIaetsd deblurring of noisy or blurred
Iaetsd deblurring of noisy or blurredIaetsd Iaetsd
 
Gpr seminar by emmaual
Gpr seminar by emmaualGpr seminar by emmaual
Gpr seminar by emmaualemmanualroy
 
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 networkDharmesh Tank
 
Image degradation and noise by Md.Naseem Ashraf
Image degradation and noise by Md.Naseem AshrafImage degradation and noise by Md.Naseem Ashraf
Image degradation and noise by Md.Naseem AshrafMD Naseem Ashraf
 
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 EngineeringKorea 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 pptNagappa 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 radarGauravate
 
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
 

En vedette (19)

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
 
Image degradation and noise by Md.Naseem Ashraf
Image degradation and noise by Md.Naseem AshrafImage degradation and noise by Md.Naseem Ashraf
Image degradation and noise by Md.Naseem Ashraf
 
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
 

Similaire à Lecture 11

Image restoration1
Image restoration1Image restoration1
Image restoration1moorthim7
 
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
 
04 cie552 image_filtering_frequency
04 cie552 image_filtering_frequency04 cie552 image_filtering_frequency
04 cie552 image_filtering_frequencyElsayed 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 NoisesSakshiAggarwal85
 
Digital Image Processing - Image Restoration
Digital Image Processing - Image RestorationDigital Image Processing - Image Restoration
Digital Image Processing - Image RestorationMathankumar 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 ModelIJERA Editor
 
Ch5_Restoration (1).pdf
Ch5_Restoration (1).pdfCh5_Restoration (1).pdf
Ch5_Restoration (1).pdfAlaaElhaddad3
 
chapter-2 SPACIAL DOMAIN.pptx
chapter-2 SPACIAL DOMAIN.pptxchapter-2 SPACIAL DOMAIN.pptx
chapter-2 SPACIAL DOMAIN.pptxAyeleFeyissa1
 
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 MethodEditor IJCATR
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slidesBHAGYAPRASADBUGGE
 

Similaire à Lecture 11 (20)

Image restoration and reconstruction
Image restoration and reconstructionImage restoration and reconstruction
Image restoration and reconstruction
 
Image restoration1
Image restoration1Image restoration1
Image restoration1
 
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
 
Module 31
Module 31Module 31
Module 31
 
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
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides
 

Plus de 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
 

Dernier

How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 

Dernier (20)

How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 

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