SlideShare a Scribd company logo
Image Restoration Algorithms
The PSF of the blur is satisfactorily known. If the
point-spread function of the linear restoration filter,
denoted by h(n1, n2), has been designed, the restored
image is given by
or in the spectral domain by
The objective of this section is to design appropriate
restoration filters h(n1, n2) or H(u, v)
Image Restoration Algorithms
How to measure?
Quantitative judgment:
In image restoration the improvement in quality of the
restored image over the recorded blurred one is measured
by the signal-to-noise ratio(SNR) improvement.
Visual judgment
In image restoration the improvement in quality of the
restored image over the recorded blurred one is measured
by the observers’ eyes.
Image Restoration Algorithms
•The signal-to-noise-ratio of the recorded (blurred and
noisy) image is defined as follows:
•The signal-to-noise ratio of the restored image is similarly
defined as
•Then, the improvement in signal-to-noise ratio (SNR) is
Attention: Often, f(n1, n2) is not available. So only
the visual judgment can be relied upon.
Image Restoration Algorithms
Inverse Filter
An inverse filter is a linear filter, whose point-spread
function hinv(n1, n2) is the inverse of the blurring function
d(n1, n2).
Image Restoration Algorithms
 Inverse Filter
•If the noise is absent, the second term above
disappears so that the restored image is identical to the
ideal image.
•The inverse filter may not exist because D(u,v) is zero
at selected frequencies. This happens for both the
linear motion blur and the out-of-focus blur described
in the previous section.
•Even if the blurring function’s spectral representation
D(u,v) doesn’t actually go to zero but becomes small,
the second term -known as the inverse filtered
noise-will become very large.
Image Restoration Algorithms
 Inverse Filter
Fig. (a) shows an image degraded by out-of-focus blur (R
= 2.5) and noise. The inverse filtered version is shown in
Fig. (b), clearly illustrating its uselessness
Image Restoration Algorithms
 Least-Squares Filters
For the noise sensitivity of the inverse filter to be overcome,
a number of restoration filters have been developed; these are
collectively called least-squares filters. We describe the two
most commonly used filters, namely the Wiener filter and the
constrained least-squares filter.
Image Restoration Algorithms
Least-Squares Filters
Wiener filter
The Wiener filter is a linear spatially invariant filter ,in which
the point-spread function h(n1, n2) is chosen such that it
minimizes the mean-squared error (MSE) between the ideal
and the restored image.
Image Restoration Algorithms
Wiener filter
Here D* (u, v) is the complex conjugate(共轭复数) of
D(u,v), and Sf(u, v) and Sw(u,v) are the power spectrum(功
率谱) of the ideal image and the noise, respectively. The
power spectrum is a measure for the average signal power
per spatial frequency carried by the image. Often the
solutions to Sf(u, v) and Sw(u,v) are difficult to get, so we
use a constant γ to replace (信噪功率比).
The solution of this minimization problem is known as the
Wiener filter, and it is easiest defined in the spectral domain:
γ
Image Restoration Algorithms
Wiener filter vs. Inverse filter
If the recorded image is noisy, the Wiener filter trades off the
restoration by inverse filtering and suppression of noise for those
frequencies where D(u,v) approximates 0.
1)D(u,v)=0, but Sw(u,v) not equals to 0
2)when SNR is high, , , approaches the inverse filter
3)when SNR is small, , it acts as a frequency rejection filter, i.e.
Hwiener(u,v) approximates 0.
In the noiseless case we have Sw(u,v) = 0, so that the Wiener
filter approximates the inverse filter.
Image Restoration Algorithms
 Least-Squares Filters
Constrained least-squares filter
The difference between the blurred version of
restored image and the distorted one should equal to
noisy data.
Select the solution that is as “smooth” as possible
•Inverse filter: excessive noise amplification
•Wiener filter: estimation of the power spectrum of
the ideal image
•Constrained least-squares filter
Image Restoration Algorithms
Least-Squares Filters
Constrained least-squares filter
The difference between the blurred version of restored image and
the distorted one should equal to noisy data.
Wiener filter tries to make the blurred version of the restored image
equal to the recorded distorted image. But there exists noise. So
constrained least-squares filter make this regular.
Image Restoration Algorithms
 Least-Squares Filters
Constrained least-squares filter
Select the solution that is as “smooth” as possible.
Here, c(n1, n2) represents the point-spread function of a 2-D high-pass
filter. A typical choice for c(n1, n2) is the discrete approximation of the
second also known as the 2-D Laplacian operator.
The interpretation is that it gives a measure for the high-frequency
content of the restored image. Minimizing this measure will make the
restored image have as little high-frequency content as possible.
Image Restoration Algorithms
 Least-Squares Filters
Constrained least-squares filter
Minimize:
Subject to:
Image Restoration Algorithms
 Least-Squares Filters
Constrained least-squares filter
Here α is a tuning or regularization parameter which
makes the constraint satisfied. Though analytical
approaches exist to estimate α, the regularization
parameter is usually considered user tunable.
The solution:
Image Restoration Algorithms
 Least-Squares Filters
Constrained least-squares filter
Wiener filter & constrained least-squares filter
It should be noted that although their motivations are quite
different, the formulation of the Wiener filter and constrained least-
squares filter are quite similar. Indeed these filters perform equally
well, and they behave similarly in the case that the variance of the
noise approaches zero.
Image Restoration Algorithms
Matlab implementation:
J = DECONVREG(I,PSF,NP)
J = DECONVREG(I,PSF,NP,LRANGE)
J = DECONVREG(I,PSF,NP,LRANGE,REGOP)
NP (optional) is the additive noise power. Default is 0.
LRANGE (optional) is a vector specifying range where
search for the optimal solution is performed. The algorithm
finds an optimal Lagrange multiplier, LAGRA, within the
LRANGE range.
REGOP (optional) is the regularization operator to
constrain the deconvolution.
Constrained least-squares filter
Image Restoration Algorithms
 Iterative Filters
Fourier domain:
inverse filter
Wiener filter
Constrained least-squares filter
Advantage: The direct convolution with the 2-D
point-spread function h(n1, n2) can be avoided. This is
a great advantage because h(n1, n2) has a very large
support, and typically contains NM nonzero filter
coefficients even if the PSF of the blur has a small
support that contains only a few nonzero coefficients.
Image Restoration Algorithms
Iterative Filters
Spatial domain:
•in situations in which the dimensions of the image to be
restored are very large, and
•in cases in which additional knowledge is available about
the restored image.
Example:
A priori knowledge is that image intensities are always
positive. Both in the Wiener and the constrained least-
squares filter the restored image may come out with
negative intensities, simply because negative restored
signal values are not explicitly prohibited in the design of
the restoration filter.
Image Restoration Algorithms
Iterative Filters
The basic form of iterative restoration filters is the one
that iteratively approaches the solution of the inverse
filter, and it is given by the following spatial domain
iteration:
Here $ (nl, nz) is the restoration result after i iterations.
Usually in the first iteration h(nl, n2) is chosen to be
identical to zero or identical to g(n1, n2). During the
iterations the blurred version of the current restoration
result $(nl, nz) is compared to the recorded image
g(nl, . The difference between the two is scaled
and added to the current restoration result to give the
next restoration result.
Image Restoration Algorithms
Iterative Filters
With iterative algorithms, there are two important concerns does
it converge and, if so, to what limiting solution?
Analyzing the basic form, it shows that convergence parameter
satisfies:
Using the fact that D(u, v)≤1, this condition simplifies to,
If the number of iterations becomes very large, then fi(n1, n2)
approaches the solution of the inverse filter:
Image Restoration Algorithms
 Iterative Filters
Iterative restoration of the image after (a) 10 iterations (△SNR =
1.6 dB), (b) 100 iterations (△ SNR = 5.0 dB), (c) 500 iterations
(△ SNR = 6.6 dB).
Image Restoration Algorithms
Iterative Filters
Lucy-Richardson filter:
1
( , )
( , ) ( , )[ ( , ) ]
( , ) ( , )
k k
k
g x y
f x y f x y h x y
h x y f x y
 
 
   

Matlab implementation:
J = DECONVLUCY(I,PSF,NUMIT,DAMPAR,WEIGHT)

More Related Content

What's hot

Digital image processing
Digital image processing  Digital image processing
Digital image processing
kavitha muneeshwaran
 
Lecture 14 Properties of Fourier Transform for 2D Signal
Lecture 14 Properties of Fourier Transform for 2D SignalLecture 14 Properties of Fourier Transform for 2D Signal
Lecture 14 Properties of Fourier Transform for 2D Signal
VARUN KUMAR
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
A B Shinde
 
5. gray level transformation
5. gray level transformation5. gray level transformation
5. gray level transformation
MdFazleRabbi18
 
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
 
4.intensity transformations
4.intensity transformations4.intensity transformations
4.intensity transformations
Yahya Alkhaldi
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
Ahmed Daoud
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
Md Shabir Alam
 
Homomorphic filtering
Homomorphic filteringHomomorphic filtering
Homomorphic filtering
Pramod Rathore
 
Image enhancement techniques
Image enhancement techniques Image enhancement techniques
Image enhancement techniques
Arshad khan
 
Image compression standards
Image compression standardsImage compression standards
Image compression standards
kirupasuchi1996
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compression
asodariyabhavesh
 
Image enhancement sharpening
Image enhancement  sharpeningImage enhancement  sharpening
Image enhancement sharpening
arulraj121
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniques
Bulbul Agrawal
 
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 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
MD Naseem Ashraf
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processing
kiruthiammu
 
Sharpening using frequency Domain Filter
Sharpening using frequency Domain FilterSharpening using frequency Domain Filter
Sharpening using frequency Domain Filter
arulraj121
 
Enhancement in spatial domain
Enhancement in spatial domainEnhancement in spatial domain
Enhancement in spatial domain
Ashish Kumar
 
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)

Digital image processing
Digital image processing  Digital image processing
Digital image processing
 
Lecture 14 Properties of Fourier Transform for 2D Signal
Lecture 14 Properties of Fourier Transform for 2D SignalLecture 14 Properties of Fourier Transform for 2D Signal
Lecture 14 Properties of Fourier Transform for 2D Signal
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
5. gray level transformation
5. gray level transformation5. gray level transformation
5. gray level transformation
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
 
4.intensity transformations
4.intensity transformations4.intensity transformations
4.intensity transformations
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
 
Homomorphic filtering
Homomorphic filteringHomomorphic filtering
Homomorphic filtering
 
Image enhancement techniques
Image enhancement techniques Image enhancement techniques
Image enhancement techniques
 
Image compression standards
Image compression standardsImage compression standards
Image compression standards
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compression
 
Image enhancement sharpening
Image enhancement  sharpeningImage enhancement  sharpening
Image enhancement sharpening
 
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 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
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processing
 
Sharpening using frequency Domain Filter
Sharpening using frequency Domain FilterSharpening using frequency Domain Filter
Sharpening using frequency Domain Filter
 
Enhancement in spatial domain
Enhancement in spatial domainEnhancement in spatial domain
Enhancement in spatial domain
 
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...
 

Similar to image restoration.ppt

Unit3 dip
Unit3 dipUnit3 dip
Unit3 dip
Imran Khan
 
Image restoration1
Image restoration1Image restoration1
Image restoration1
moorthim7
 
Chap6 image restoration
Chap6 image restorationChap6 image restoration
Chap6 image restoration
ShardaSalunkhe1
 
Image Restoration
Image RestorationImage Restoration
Image Restoration
Poonam Seth
 
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
 
DIP -Unit 3 ppt.pptx
DIP -Unit 3 ppt.pptxDIP -Unit 3 ppt.pptx
DIP -Unit 3 ppt.pptx
1DA20CS085Nithyashre
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
ABIRAMI M
 
Module 31
Module 31Module 31
Module 31
UllasSS1
 
M.sc. m hassan
M.sc. m hassanM.sc. m hassan
M.sc. m hassan
Ashraf Aboshosha
 
08 frequency domain filtering DIP
08 frequency domain filtering DIP08 frequency domain filtering DIP
08 frequency domain filtering DIP
babak danyal
 
An Image Restoration Practical Method
An Image Restoration Practical MethodAn Image Restoration Practical Method
An Image Restoration Practical Method
IDES Editor
 
Image filtering in Digital image processing
Image filtering in Digital image processingImage filtering in Digital image processing
Image filtering in Digital image processing
Abinaya B
 
Iisrt zzz bhavyasri vanteddu
Iisrt zzz bhavyasri vantedduIisrt zzz bhavyasri vanteddu
Iisrt zzz bhavyasri vanteddu
IISRT
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSING
muthu181188
 
Image denoising algorithms
Image denoising algorithmsImage denoising algorithms
Image denoising algorithms
Mohammad Sunny
 
M.sc.iii sem digital image processing unit iv
M.sc.iii sem digital image processing unit ivM.sc.iii sem digital image processing unit iv
M.sc.iii sem digital image processing unit iv
Shri Shankaracharya College, Bhilai,Junwani
 
unit-3.ppt
unit-3.pptunit-3.ppt
Image_filtering (1).pptx
Image_filtering (1).pptxImage_filtering (1).pptx
Image_filtering (1).pptx
wdwd10
 
Denoising of image using wavelet
Denoising of image using waveletDenoising of image using wavelet
Denoising of image using wavelet
Asim Qureshi
 
Image Denoising Using Wavelet
Image Denoising Using WaveletImage Denoising Using Wavelet
Image Denoising Using Wavelet
Asim Qureshi
 

Similar to image restoration.ppt (20)

Unit3 dip
Unit3 dipUnit3 dip
Unit3 dip
 
Image restoration1
Image restoration1Image restoration1
Image restoration1
 
Chap6 image restoration
Chap6 image restorationChap6 image restoration
Chap6 image restoration
 
Image Restoration
Image RestorationImage Restoration
Image Restoration
 
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)
 
DIP -Unit 3 ppt.pptx
DIP -Unit 3 ppt.pptxDIP -Unit 3 ppt.pptx
DIP -Unit 3 ppt.pptx
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
 
Module 31
Module 31Module 31
Module 31
 
M.sc. m hassan
M.sc. m hassanM.sc. m hassan
M.sc. m hassan
 
08 frequency domain filtering DIP
08 frequency domain filtering DIP08 frequency domain filtering DIP
08 frequency domain filtering DIP
 
An Image Restoration Practical Method
An Image Restoration Practical MethodAn Image Restoration Practical Method
An Image Restoration Practical Method
 
Image filtering in Digital image processing
Image filtering in Digital image processingImage filtering in Digital image processing
Image filtering in Digital image processing
 
Iisrt zzz bhavyasri vanteddu
Iisrt zzz bhavyasri vantedduIisrt zzz bhavyasri vanteddu
Iisrt zzz bhavyasri vanteddu
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSING
 
Image denoising algorithms
Image denoising algorithmsImage denoising algorithms
Image denoising algorithms
 
M.sc.iii sem digital image processing unit iv
M.sc.iii sem digital image processing unit ivM.sc.iii sem digital image processing unit iv
M.sc.iii sem digital image processing unit iv
 
unit-3.ppt
unit-3.pptunit-3.ppt
unit-3.ppt
 
Image_filtering (1).pptx
Image_filtering (1).pptxImage_filtering (1).pptx
Image_filtering (1).pptx
 
Denoising of image using wavelet
Denoising of image using waveletDenoising of image using wavelet
Denoising of image using wavelet
 
Image Denoising Using Wavelet
Image Denoising Using WaveletImage Denoising Using Wavelet
Image Denoising Using Wavelet
 

Recently uploaded

Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
shadow0702a
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
21UME003TUSHARDEB
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
co23btech11018
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 
Null Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAMNull Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAM
Divyanshu
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
Nada Hikmah
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
ydzowc
 
artificial intelligence and data science contents.pptx
artificial intelligence and data science contents.pptxartificial intelligence and data science contents.pptx
artificial intelligence and data science contents.pptx
GauravCar
 
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURSCompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
RamonNovais6
 
john krisinger-the science and history of the alcoholic beverage.pptx
john krisinger-the science and history of the alcoholic beverage.pptxjohn krisinger-the science and history of the alcoholic beverage.pptx
john krisinger-the science and history of the alcoholic beverage.pptx
Madan Karki
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Sinan KOZAK
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
KrishnaveniKrishnara1
 
Hematology Analyzer Machine - Complete Blood Count
Hematology Analyzer Machine - Complete Blood CountHematology Analyzer Machine - Complete Blood Count
Hematology Analyzer Machine - Complete Blood Count
shahdabdulbaset
 
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by AnantLLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
Anant Corporation
 
Data Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason WebinarData Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason Webinar
UReason
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
Las Vegas Warehouse
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
171ticu
 
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
171ticu
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
Madan Karki
 

Recently uploaded (20)

Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 
Null Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAMNull Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAM
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
 
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
原版制作(Humboldt毕业证书)柏林大学毕业证学位证一模一样
 
artificial intelligence and data science contents.pptx
artificial intelligence and data science contents.pptxartificial intelligence and data science contents.pptx
artificial intelligence and data science contents.pptx
 
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURSCompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
CompEx~Manual~1210 (2).pdf COMPEX GAS AND VAPOURS
 
john krisinger-the science and history of the alcoholic beverage.pptx
john krisinger-the science and history of the alcoholic beverage.pptxjohn krisinger-the science and history of the alcoholic beverage.pptx
john krisinger-the science and history of the alcoholic beverage.pptx
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
 
Hematology Analyzer Machine - Complete Blood Count
Hematology Analyzer Machine - Complete Blood CountHematology Analyzer Machine - Complete Blood Count
Hematology Analyzer Machine - Complete Blood Count
 
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by AnantLLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
LLM Fine Tuning with QLoRA Cassandra Lunch 4, presented by Anant
 
Data Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason WebinarData Driven Maintenance | UReason Webinar
Data Driven Maintenance | UReason Webinar
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
 
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
 

image restoration.ppt

  • 1. Image Restoration Algorithms The PSF of the blur is satisfactorily known. If the point-spread function of the linear restoration filter, denoted by h(n1, n2), has been designed, the restored image is given by or in the spectral domain by The objective of this section is to design appropriate restoration filters h(n1, n2) or H(u, v)
  • 2. Image Restoration Algorithms How to measure? Quantitative judgment: In image restoration the improvement in quality of the restored image over the recorded blurred one is measured by the signal-to-noise ratio(SNR) improvement. Visual judgment In image restoration the improvement in quality of the restored image over the recorded blurred one is measured by the observers’ eyes.
  • 3. Image Restoration Algorithms •The signal-to-noise-ratio of the recorded (blurred and noisy) image is defined as follows: •The signal-to-noise ratio of the restored image is similarly defined as •Then, the improvement in signal-to-noise ratio (SNR) is Attention: Often, f(n1, n2) is not available. So only the visual judgment can be relied upon.
  • 4. Image Restoration Algorithms Inverse Filter An inverse filter is a linear filter, whose point-spread function hinv(n1, n2) is the inverse of the blurring function d(n1, n2).
  • 5. Image Restoration Algorithms  Inverse Filter •If the noise is absent, the second term above disappears so that the restored image is identical to the ideal image. •The inverse filter may not exist because D(u,v) is zero at selected frequencies. This happens for both the linear motion blur and the out-of-focus blur described in the previous section. •Even if the blurring function’s spectral representation D(u,v) doesn’t actually go to zero but becomes small, the second term -known as the inverse filtered noise-will become very large.
  • 6. Image Restoration Algorithms  Inverse Filter Fig. (a) shows an image degraded by out-of-focus blur (R = 2.5) and noise. The inverse filtered version is shown in Fig. (b), clearly illustrating its uselessness
  • 7. Image Restoration Algorithms  Least-Squares Filters For the noise sensitivity of the inverse filter to be overcome, a number of restoration filters have been developed; these are collectively called least-squares filters. We describe the two most commonly used filters, namely the Wiener filter and the constrained least-squares filter.
  • 8. Image Restoration Algorithms Least-Squares Filters Wiener filter The Wiener filter is a linear spatially invariant filter ,in which the point-spread function h(n1, n2) is chosen such that it minimizes the mean-squared error (MSE) between the ideal and the restored image.
  • 9. Image Restoration Algorithms Wiener filter Here D* (u, v) is the complex conjugate(共轭复数) of D(u,v), and Sf(u, v) and Sw(u,v) are the power spectrum(功 率谱) of the ideal image and the noise, respectively. The power spectrum is a measure for the average signal power per spatial frequency carried by the image. Often the solutions to Sf(u, v) and Sw(u,v) are difficult to get, so we use a constant γ to replace (信噪功率比). The solution of this minimization problem is known as the Wiener filter, and it is easiest defined in the spectral domain: γ
  • 10. Image Restoration Algorithms Wiener filter vs. Inverse filter If the recorded image is noisy, the Wiener filter trades off the restoration by inverse filtering and suppression of noise for those frequencies where D(u,v) approximates 0. 1)D(u,v)=0, but Sw(u,v) not equals to 0 2)when SNR is high, , , approaches the inverse filter 3)when SNR is small, , it acts as a frequency rejection filter, i.e. Hwiener(u,v) approximates 0. In the noiseless case we have Sw(u,v) = 0, so that the Wiener filter approximates the inverse filter.
  • 11. Image Restoration Algorithms  Least-Squares Filters Constrained least-squares filter The difference between the blurred version of restored image and the distorted one should equal to noisy data. Select the solution that is as “smooth” as possible •Inverse filter: excessive noise amplification •Wiener filter: estimation of the power spectrum of the ideal image •Constrained least-squares filter
  • 12. Image Restoration Algorithms Least-Squares Filters Constrained least-squares filter The difference between the blurred version of restored image and the distorted one should equal to noisy data. Wiener filter tries to make the blurred version of the restored image equal to the recorded distorted image. But there exists noise. So constrained least-squares filter make this regular.
  • 13. Image Restoration Algorithms  Least-Squares Filters Constrained least-squares filter Select the solution that is as “smooth” as possible. Here, c(n1, n2) represents the point-spread function of a 2-D high-pass filter. A typical choice for c(n1, n2) is the discrete approximation of the second also known as the 2-D Laplacian operator. The interpretation is that it gives a measure for the high-frequency content of the restored image. Minimizing this measure will make the restored image have as little high-frequency content as possible.
  • 14. Image Restoration Algorithms  Least-Squares Filters Constrained least-squares filter Minimize: Subject to:
  • 15. Image Restoration Algorithms  Least-Squares Filters Constrained least-squares filter Here α is a tuning or regularization parameter which makes the constraint satisfied. Though analytical approaches exist to estimate α, the regularization parameter is usually considered user tunable. The solution:
  • 16. Image Restoration Algorithms  Least-Squares Filters Constrained least-squares filter Wiener filter & constrained least-squares filter It should be noted that although their motivations are quite different, the formulation of the Wiener filter and constrained least- squares filter are quite similar. Indeed these filters perform equally well, and they behave similarly in the case that the variance of the noise approaches zero.
  • 17. Image Restoration Algorithms Matlab implementation: J = DECONVREG(I,PSF,NP) J = DECONVREG(I,PSF,NP,LRANGE) J = DECONVREG(I,PSF,NP,LRANGE,REGOP) NP (optional) is the additive noise power. Default is 0. LRANGE (optional) is a vector specifying range where search for the optimal solution is performed. The algorithm finds an optimal Lagrange multiplier, LAGRA, within the LRANGE range. REGOP (optional) is the regularization operator to constrain the deconvolution. Constrained least-squares filter
  • 18. Image Restoration Algorithms  Iterative Filters Fourier domain: inverse filter Wiener filter Constrained least-squares filter Advantage: The direct convolution with the 2-D point-spread function h(n1, n2) can be avoided. This is a great advantage because h(n1, n2) has a very large support, and typically contains NM nonzero filter coefficients even if the PSF of the blur has a small support that contains only a few nonzero coefficients.
  • 19. Image Restoration Algorithms Iterative Filters Spatial domain: •in situations in which the dimensions of the image to be restored are very large, and •in cases in which additional knowledge is available about the restored image. Example: A priori knowledge is that image intensities are always positive. Both in the Wiener and the constrained least- squares filter the restored image may come out with negative intensities, simply because negative restored signal values are not explicitly prohibited in the design of the restoration filter.
  • 20. Image Restoration Algorithms Iterative Filters The basic form of iterative restoration filters is the one that iteratively approaches the solution of the inverse filter, and it is given by the following spatial domain iteration: Here $ (nl, nz) is the restoration result after i iterations. Usually in the first iteration h(nl, n2) is chosen to be identical to zero or identical to g(n1, n2). During the iterations the blurred version of the current restoration result $(nl, nz) is compared to the recorded image g(nl, . The difference between the two is scaled and added to the current restoration result to give the next restoration result.
  • 21. Image Restoration Algorithms Iterative Filters With iterative algorithms, there are two important concerns does it converge and, if so, to what limiting solution? Analyzing the basic form, it shows that convergence parameter satisfies: Using the fact that D(u, v)≤1, this condition simplifies to, If the number of iterations becomes very large, then fi(n1, n2) approaches the solution of the inverse filter:
  • 22. Image Restoration Algorithms  Iterative Filters Iterative restoration of the image after (a) 10 iterations (△SNR = 1.6 dB), (b) 100 iterations (△ SNR = 5.0 dB), (c) 500 iterations (△ SNR = 6.6 dB).
  • 23. Image Restoration Algorithms Iterative Filters Lucy-Richardson filter: 1 ( , ) ( , ) ( , )[ ( , ) ] ( , ) ( , ) k k k g x y f x y f x y h x y h x y f x y          Matlab implementation: J = DECONVLUCY(I,PSF,NUMIT,DAMPAR,WEIGHT)

Editor's Notes

  1. by out-of-focus blur
  2. by out-of-focus blur
  3. by out-of-focus blur
  4. by out-of-focus blur
  5. 维纳滤波是基于平稳随机过程模型,且假设退化模型为线性空间不变系统的原因,这与实际情况存在一定差距。另外,最小均方误差准则与人的视觉准则不一定匹配
  6. by out-of-focus blur