Dip Unit 3
Dip Unit 3
IMAGE RESTORATION
Topics
• Image Restoration:
• Degradation Mode
• Algebraic Approach to Restoration
• Inverse Filtering
• Least Mean Square Filters
• Constrained Least Squares Restoration
2
IMAGE RESTORATION
• IMAGE RESTORATION:
• Restoration improves image in some predefined
sense. It is an objective process.
• Restoration attempts to reconstruct an image
that has been degraded by using a priori
knowledge of the degradation phenomenon.
• These techniques are oriented toward modeling
the degradation and then applying the inverse
process in order to recover the original image.
3
• Restoration techniques are based on
mathematical or probabilistic models of image
processing.
• Enhancement, on the other hand is based on
human subjective preferences regarding what
constitutes a “good” enhancement result.
• Image Restoration refers to a class of
methods that aim to remove or reduce the
degradations that have occurred while the
digital image was being obtained.
4
• All natural images when displayed have gone
through some sort of degradation:
• During display mode
• Acquisition mode, or
• Processing mode
– Sensor noise
– Blur due to camera miss focus
– Relative object-camera motion
– Random atmospheric turbulence
• Others
5
Degradation Model
• Degradation process operates on a degradation
function that operates on an input image with an
additive noise term.
• Input image is represented by using the notation
f(x,y), noise term can be represented as η(x,y).
• These two terms when combined gives the result as
g(x,y).
• If we are given g(x,y), some knowledge about the
degradation function H or J and some knowledge
about the additive noise teem η(x,y), the objective of
restoration is to obtain an estimate f'(x,y) of the
original image. 6
Fig: A model of the image Degradation / Restoration process
7
• We want the estimate to be as close as possible to
the original image. The more we know about h and η
, the closer f(x,y) will be to f'(x,y).
• If it is a linear position invariant process, then
degraded image is given in the spatial domain by
g(x,y)=f(x,y)*h(x,y)+η(x,y)
• h(x,y) is spatial representation of degradation
function and symbol * represents convolution.
• In frequency domain we may write this equation as
G(u,v)=F(u,v)H(u,v)+N(u,v)
• The terms in the capital letters are the Fourier
Transform of the corresponding terms in the spatial
domain. 8
Noise Models
• The principal source of noise in digital images
arises during image acquisition and /or
transmission.
• The performance of imaging sensors is
affected by a variety of factors, such as
environmental conditions during image
acquisition and by the quality of the sensing
elements themselves.
9
• Images are corrupted during transmission
principally due to interference in the channels
used for transmission.
• Since main sources of noise presented in
digital images are resulted from atmospheric
disturbance and image sensor circuitry,
following assumptions can be made i.e.
– the noise model is spatial invariant (independent
of spatial location).
– The noise model is uncorrelated with the object
function.
10
Gaussian Noise
• The PDF of Gaussian
random variable is
11
Rayleigh Noise
• Unlike Gaussian
distribution, the Rayleigh
distribution is no
symmetric. It is given by
the formula.
12
Gamma Noise
• The PDF of Erlang noise is given
by
14
Uniform Noise
• The PDF of uniform noise is
given by
15
Impulse (salt & pepper) Noise
• In this case, the noise is
signal dependent, and is
multiplied to the image.
• The PDF of bipolar
(impulse) noise is given by
20
Techniques used to reduce the
noise effect
21
Mean Filter
Arithmetic Mean filter:
• It is the simplest mean filter.
• Let Sxy represents the set of coordinates in
the sub image of size m*n centered at point
(x,y). The arithmetic mean filter computes the
average value of the corrupted image g(x,y) in
the area defined by Sxy.
24
Order statistics filter
• Order statistics filters are spatial filters whose
response is based on ordering the pixel
contained in the image area encompassed by
the filter.
• The response of the filter at any point is
determined by the ranking result.
25
Median filter:
• It is the best order statistic filter; it replaces the value of a pixel by the
median of gray levels in the Neighborhood of the pixel.
27
28
29
Periodic Noise by Frequency domain
filtering
• Band Reject Filters
• Band pass filters
• Notch filters
• Low pass filters
• High pass filters
30
Band Reject Filters
• It removes a band of frequencies about the origin of
the Fourier transformer.
Ideal Band reject Filter
• An ideal band reject filter is given by the expression
35
Notch Filters
• A notch filter rejects (or passes) frequencies in
predefined neighborhoods about a center frequency.
• Due to the symmetry of the Fourier transform notch
filters must appear in symmetric pairs about the
origin.
• The transfer function of an ideal notch reject filter of
radius D0 with centers a (u0 , v0) and by symmetry at (-
u0 , v0) is
36
• Ideal, butterworth, Gaussian notch filters
37
38
Notch pass filter
Hnp(u,v)= 1 - Hnr(u,v)
39
Inverse Filtering
• The simplest approach to restoration is direct inverse filtering
where we complete an estimate of the transform of the
original image simply by dividing the transform of the
degraded image G(u,v) by degradation function H(u,v)
• We know that
• Therefore
41
42
Minimum mean Square Error
(Wiener) filtering
• The inverse filtering approach has poor performance. The
wiener filtering approach uses the degradation function and
statistical characteristics of noise into the restoration process.
• The objective is to find an estimate of the uncorrupted image
f such that the mean square error between them is
minimized.
• The error measure is given by
44
• Where K is a specified constant.
Constrained least squares filtering
• The wiener filter has a disadvantage that we need to know the power
spectra of the undegraded image and noise. The constrained least square
filtering requires only the knowledge of only the mean and variance of the
noise. These parameters usually can be calculated from a given degraded
image this is the advantage with this method. This method produces a
optimal result. This method require the optimal criteria which is important
we express the
in vector-matrix form
45
• The minimum of a criterion function C defined
as
46
47