Professional Documents
Culture Documents
Restoration
Introduction to Signal
and Image Processing
1 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Contents
Contents
Abstract 2
1 Image Degradation & Restoration Model
Image Degradation & Restoration Model 4
Image Degradation & Restoration Model (2) 5
2 Noise Models
Noise Models 7
Gaussian Noise 8
Rayleigh Noise 9
Erlang Noise 10
Exponential Noise 11
Uniform Noise 12
Impulse (Salt-and-Pepper) Noise 13
Noise Models 14
Visual Comparison of Different Noise Sources 15
Periodic Noise 16
Estimation of Noise Parameters (1) 17
Estimation of Periodic Noise Parameters 18
3 Restoration in the Precense of Noise Only
Restoration in the Precense of Noise Only 20
4 Periodic Noise Reduction by Frequency Domain
Filtering
4.1 Bandreject Filter
Bandreject Filter 23
Bandreject Filter Example 24
4.2 Bandpass Filter
Introduction to Signal and Image Processing April 19th/26th, 2016
2 of 70 22.02.2016 09:19
Bandpass Filter 26
Bandpass Filter Example 27
4.3 Notch Filter
Notch Filter 29
Notch Filter (2) 30
Ideal Notch Filter D_0=16 Example 31
Butterworth Notch Filter D_0=64 32
Example
Gaussian Notch Filter D_0=64 Example 33
General Notch Filter Example 34
4.4 Optimum Notch Filtering
Optimum Notch Filtering 36
Optimum Notch Filtering Principle 37
Optimum Notch Filter Example 38
Optimum Notch Filter Example with 39
Pixel Increments
Optimum Notch Filter Example with 40
Pixel Increments (2)
5 Estimating the Degradation Function
Estimating the Degradation Function 42
Estimating the Degradation Function (2) 43
Estimating by Image Observation 44
Estimating by Experimentation 45
Estimating by Mathematical Modelling 46
Illustration of the Atmospheric Turbulence 47
Model
6 Inverse Filtering
6.1 Direct Inverse Filtering
Direct Inverse Filtering 50
Two Practical Approaches for Inverse 51
Filtering
Introduction to Signal and Image Processing April 19th/26th, 2016
3 of 70 22.02.2016 09:19
Artificial Inverse Filtering Example 52
Artificial Inverse Filtering Example (2) 53
Inverse Filtering Example (2) 54
6.2 Wiener Filtering
Wiener Filtering 56
Wiener Filtering (2) 57
Parametric Wiener Filter 58
Artificial Wiener Filtering Example 59
Wiener Filtering Example with Little 60
Noise
Wiener Filtering Example with Medium 61
Noise
Wiener Filtering Example with Heavy 62
Noise
Comparison Param. Wiener vs. Wiener 63
Filtering
Drawback of the Wiener Filter 64
6.3 Geometric Mean Filter
Geometric Mean Filter 66
6.4 Constrained Least Squares Filtering
Constrained Least Squares (Regularised) 68
Filtering
Constrained Least Squares Filtering (2) 69
Constrained Least Squares Filtering (3) 70
Optimal Selection for Gamma 71
Artificial Constrained Least Squares 72
Filter Example
Constrained Least Squares Filter 73
Example
4 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration
Abstract (2)
As in image enhancement the goal of restoration is to
improve an image for further processing. In contrast to
image enhancement that was subjective and largely based
on heuristics, restoration attempts to reconstruct or
recover an image that has been distorted by a known
degradation phenomenon. Restoration techniques thus try
to model the degradation process and apply the inverse
process in order to reconstruct the original image.
5 of 70 22.02.2016 09:19
Image
Degradation &
Restoration Model
Image Degradation & (4)
Restoration Model
The degradation process is generally modelled as a
degradation function and the additive noise term
together they yield .
6 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Image Degradation & Restoration Model
(6.1)
(6.2)
7 of 70 22.02.2016 09:19
Noise Models
Noise Models (7)
The principle sources of noise in digital images arise
during image acquisition and/or transmission.
Lightning or other
Atmospheric disturbances
8 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Noise Models
(6.3)
9 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Noise Models
(6.4)
Fig 6.3: Rayleigh
probability
density function
the mean and variance are given by
(6.5)
10 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Noise Models
(6.6)
(6.7)
11 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Noise Models
(6.8)
Fig 6.5: Probability density
function of
where . The mean and exponential noise
variance of the density function
are
(6.9)
12 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Noise Models
(6.10)
Fig 6.6: Probability density
function of uniform
The mean and variance of the noise
density function are given by
(6.11)
13 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Noise Models
(6.12)
Fig 6.7: Probability density
function of the bipolar
impulse noise model
14 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Noise Models
15 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Noise Models
Gaussian noise
model
Rayleigh noise
model
16 of 70 22.02.2016 09:19
Exponential noise
model
Uniform noise
model
Impulse noise
model
17 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Noise Models
Fig 6.8: Periodic noise on a satellite Fig 6.9: Spectrum of the Pompeii
image of Pompeii image with periodic noise (peaks of
the periodic noise visually
enhanced)
18 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Noise Models
19 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Noise Models
The parameters of
periodic noise are
typically estimated
by inspection of
the Fourier
spectrum. The
frequency spikes
can often be
detected by visual
analysis. Fig. 6.11: Fig. 6.12:
Automatic analysis
is possible if the
noise spikes are
either
exceptionally
pronounced or a
priori knowledge
about their
location is known.
20 of 70 22.02.2016 09:19
Restoration in the
Precense of Noise
Only
Restoration in the (20)
Precense of Noise Only
When noise is the only image degradation present in an
image, thus , Eqs 6.1 & 6.2 become
(6.13)
and
(6.14)
21 of 70 22.02.2016 09:19
Periodic Noise
Reduction by
Frequency Domain
Filtering
Bandreject Filter
22 of 70 22.02.2016 09:19
Bandreject Filter (23)
Bandreject filters remove or attenuate a band of
frequencies around the origin in the Fourier domain.
(6.15)
(6.16)
23 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Bandreject Filter
Fig 6.16: Aerial image of Pompeii Fig 6.17: Ideal bandreject filter
with periodic noise
24 of 70 22.02.2016 09:19
Bandpass Filter
Bandpass Filter (26)
The Bandpass filter performs the opposite of a bandreject
filter and thus lets pass the frequencies in a narrow band
of width around . The transfer function can
be obtained from a corresponding bandreject filter by
using the equation
(6.18)
25 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Bandpass Filter
Fig 6.21: Aerial image of Pompeii Fig 6.22: Ideal bandpass filter
with periodic noise
26 of 70 22.02.2016 09:19
Notch Filter
27 of 70 22.02.2016 09:19
Notch Filter (29)
A Notch filter rejects or passes frequencies in predefined
neighbourhoods about a centre frequency. Due to the
symmetry of the Fourier transform, notch filters must
appear in symmetric pairs about the origin (except the one
at the origin).
(6.19)
(6.20)
Fig 6.26:
Butterworth
notch filter
Gaussian Notch Filter
(6.21)
Fig 6.27:
Gaussian notch
filter
where
(6.22)
28 of 70 22.02.2016 09:19
Introduction to Signal and Image Processing April 19th/26th, 2016
29 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Notch Filter
(6.23)
If
30 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Notch Filter
Fig 6.29: Notch reject filtered Fig 6.30: Notch pass filtered image
image (contrast enhanced)
31 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Notch Filter
Fig 6.32: Notch reject filtered Fig 6.33: Notch pass filtered image
image (contrast enhanced)
32 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Notch Filter
Fig 6.35: Notch reject filtered Fig 6.36: Notch pass filtered image
image (contrast enhanced)
33 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Notch Filter
Fig 6.37: Original Mariner 6 Fig 6.38: Log Fourier spectra of the
martian image image
Fig 6.39: Notch filtered log spectra Fig 6.40: Notch filtered image
34 of 70 22.02.2016 09:19
Optimum Notch
Filtering
35 of 70 22.02.2016 09:19
Optimum Notch Filtering (36)
Images derived from electro-optical scanners, such as
those used in space and aerial imaging, are sometimes
corrupted by coupling and amplification of low-level
signals in the scanners' circuitry. The resulting images
tend to contain substantial periodic noise. The
interference pattern are, however, in practice not always
as clearly defined as in the samples shown thus far.
(6.24)
(6.25)
(6.26)
36 of 70 22.02.2016 09:19
(6.27)
(6.29)
(6.30)
(6.31)
(6.32)
(6.33)
Introduction to Signal and Image Processing April 19th/26th, 2016
37 of 70 22.02.2016 09:19
in the neighbourhood. With these approximations Eq 6.30
becomes
(6.34)
To minimise , we solve
(6.35)
(6.36)
38 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Optimum Notch Filtering
39 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Optimum Notch Filtering
Fig 6.42 Aerial image of Pompeii Fig 6.43 Noise estimation with
with heavy periodic noise Gaussian notch pass filter
distortions
Fig 6.44 Notch reject filtered Fig 6.45 Result filtered with an
image optimum notch filter of size
40 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Optimum Notch Filtering
Fig 6.46 Aerial image of Pompeii corrected with the optimal notch filter
of size with the window shifted pixelwise
41 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Optimum Notch Filtering
42 of 70 22.02.2016 09:19
Estimating the
Degradation
Function
Estimating the (42)
Degradation Function
So far we concentrated mainly at the additive noise term
. In the remainder of this presentation we
concentrate on ways to remove the degradation function
.
43 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Estimating the Degradation Function
1. Observation
2. Experimentation
3. Mathematical modelling
44 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Estimating the Degradation Function
Solution
45 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Estimating the Degradation Function
Estimating by (45)
Experimentation
Given
Solution
46 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Estimating the Degradation Function
Estimating by (46)
Mathematical Modelling
Degradation modelling has been used for many years. It,
however, requires an indepth understanding of the
involved physical phenomenon. In some cases it can even
incorporate environmental conditions that cause
degradations. Hufnagel and Stanly proposed in 1964 a
model to characterise atmospheric turbulence.
(6.37)
Except of the 5/6 power the above equation has the same
form as a Gaussian lowpass filter.
47 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Estimating the Degradation Function
Fig 6.49: Aerial image of Pompeii Fig 6.50: Pompeii with mild
turbulence
Fig 6.51: Pompeii with medium Fig 6.52 Pompeii with heavy
turbulence turbulence
48 of 70 22.02.2016 09:19
Inverse Filtering
Direct Inverse
Filtering
49 of 70 22.02.2016 09:19
Direct Inverse Filtering (50)
The simplest approach to restore a degraded image is to
form an estimate of the form
(6.38)
(6.39)
50 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Direct Inverse Filtering
(6.40)
2. Constrained Division
(6.41)
51 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Direct Inverse Filtering
Fig 6.55: Additive noise with Fig 6.56: Motion and noise
degraded checkerboard
52 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Direct Inverse Filtering
53 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Direct Inverse Filtering
Fig 6.58: Inverse filtering of Figure Fig 6.59: Pseudo Inverse filtering
6.52 for freq. radius
Fig 6.60: Pseudo Inverse filtering Fig 6.61: Pseudo Inverse filtering
for frequencies radius for frequencies radius
54 of 70 22.02.2016 09:19
Wiener Filtering
Wiener Filtering (56)
The best known improvement to inverse filtering is the
Wiener Filter. The Wiener filter seeks an estimate that
minimises the statistical error function
(6.42)
(6.43)
where
55 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Wiener Filtering
(6.44)
56 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Wiener Filtering
(6.45)
57 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Wiener Filtering
Fig 6.62: Parametric Wiener filter Fig 6.63: Wiener filter knowing the
using a constant ratio noise and undegraded signal power
spectra
58 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Wiener Filtering
Fig 6.64: Pompeii blurred with Fig 6.65: Result of direct inverse
Gaussian kernel , and filtering
Gaussian noise
Fig 6.66: Result with Parametric Fig 6.67: Result with Wiener
Wiener filtering filtering
59 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Wiener Filtering
Fig 6.68: Pompeii blurred with Fig 6.69: Result of direct inverse
Gaussian kernel , and filtering
Gaussian noise
Fig 6.70: Result with Parametric Fig 6.71: Result with Wiener
Wiener filtering filtering
60 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Wiener Filtering
Fig 6.72: Pompeii blurred with Fig 6.73: Result of direct inverse
Gaussian kernel , and filtering
Gaussian noise
Fig 6.74: Result with Parametric Fig 6.75: Result with Wiener
Wiener filtering filtering
61 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Wiener Filtering
(a) (b)
Fig 6.76 Aerial image of Pompeii with Gaussian blur ( ) and noise (
) (a) restored with the Parametric Wiener ( ), (b)
same image restored with Wiener filter.
62 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Wiener Filtering
must be known.
63 of 70 22.02.2016 09:19
Geometric Mean
Filter
Geometric Mean Filter (66)
The Geometric Mean Filter is a generalisation of inverse
filtering and the Wiener filtering. Through its parameters
it allows access to an entire family of filters.
(6.46)
: inverse filtering
: spectrum equalisation filter
: parametric Wiener filter → Wiener
64 of 70 22.02.2016 09:19
Constrained Least
Squares Filtering
Constrained Least (68)
Squares (Regularised)
Filtering
The Constrained Least Squares Filtering approach only
requires knowledge of the mean and variance of the noise.
As shown in previous lectures these parameters can be
usually estimated from the degraded image.
(6.47)
(6.48)
65 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Constrained Least Squares Filtering
(6.49)
(6.50)
66 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Constrained Least Squares Filtering
(6.51)
(6.52)
67 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Constrained Least Squares Filtering
(6.53)
68 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Constrained Least Squares Filtering
Fig 6.77: Result with optimal Fig 6.78: Results with manually
selected
69 of 70 22.02.2016 09:19
Ph. Cattin: Image Restoration Constrained Least Squares Filtering
Fig 6.79: Pompeii blurred with Fig 6.80: Result with low Gaussian
Gaussian kernel noise of
Fig 6.81: Result with medium Fig 6.82: Result with high Gaussian
Gaussian noise of noise of
70 of 70 22.02.2016 09:19