Image Restoration and Reconstruction
Image Restoration and Reconstruction
g ( x, y) f ( x, y) ( x, y)
where f(x, y) is the original image pixel, η(x, y) is the
noise term and g(x, y) is the resulting noisy pixel
If we can estimate the noise model we can figure out how
to restore the image
BLOCK DIAGRAM
NOISE MODELS (CONT...)
There are many different Gaussian Rayleigh
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Rayleigh
Erlang (Gamma)
Exponential
Uniform
Uniform Impulse
Impulse
Salt and pepper noise
NOISE EXAMPLE
The test pattern to the right is ideal for
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Image
Histogram to go here
Histogram
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Gaussian
NOISE EXAMPLE (CONT…)
Rayleigh
Erlang
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Exponential
NOISE EXAMPLE (CONT…)
Uniform
Impulse
Histogram to go here
RESTORATION USING SPATIAL FILTERING
Mean Filters
Order Statistic Filters
Adaptive Filters
RESTORATION USING SPATIAL FILTERING
Mean Filters:
ˆf ( x, y ) 1
g ( s, t )
mn ( s ,t )S xy
1/ 1/ 1/
9 9 9 This is implemented as the
1/ 1/ 1/ simple smoothing filter by
9 9 9
introducing the blur in the image.
1/ 1/ 1/
9 9 9
OTHER MEANS (CONT…)
Geometric Mean:
1
mn
fˆ ( x, y ) g ( s, t )
( s ,t )S xy
Works well for salt noise, but fails for pepper noise.
Also does well for other kinds of noise such as
Gaussian noise.
OTHER MEANS (CONT…)
Contraharmonic Mean:
g ( s, t )
( s ,t )S xy
Q 1
fˆ ( x, y )
g ( s, t )
( s ,t )S xy
Q
Image
Original corrupted
image by Gaussian
noise
3x3
Geometric
3x3 Mean Filter
Arithmetic (less blurring
Mean than AMF, the
Filter image is
sharper)
NOISE REMOVAL EXAMPLES (CONT…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Image corrupted by
pepper noise at 0.1
Image corrupted by
salt noise at 0.1
Image Result of 1
corrupted pass with a
by Salt And 3x3 Median
Pepper noise Filter
at 0.2
Result of 2 Result of 3
passes with passes with
a 3x3 Median a 3*3 Median
Filter Filter
Repeated passes remove the noise better but also blur the image
fˆ ( x, y) min {g ( s, t )}
( s ,t )S xy
NOISE REMOVAL EXAMPLES (CONT…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
Image Image
corrupted corrupted
by Pepper by Salt
noise noise
Filtering Filtering
above above
with a 3x3 with a 3x3
Max Filter Min Filter
1. Max filter will reduce some black pixels which are near to
dark image object.
2. Min Filter will make white pixel also to dark pixel near the
dark image object.
NOISE REMOVAL EXAMPLES (CONT…)
Image Image further
corrupted
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
corrupted
by uniform by Salt and
noise Pepper noise
Filtering by a Filtering by a
5x5 Arithmetic 5x5 Geometric
Mean Filter Mean Filter
Filtering by a Filtering by a
5x5 Median 5x5 Alpha-Trimmed
Filter Mean Filter (d=5)
Note: For higher order of ‘d’ in ATM filter it approaches the result
of median filter.
ADAPTIVE FILTERS
ADVANTAGES
ADAPTIVE MEDIAN FILTERING (CONT…)
W
1 if D(u, v) D0 2
W W
H (u, v) 0 if D0 D(u, v) D0
2 2
1 if D(u, v) D0 W
2
BAND REJECT FILTERS (CONT…)
The ideal band reject filter is shown below, along
Images taken from Gonzalez & Woods, Digital Image Processing (2002)
1. Observation
2. Experimentation
3. Mathematical modeling
ESTIMATION BY IMAGE OBSERVATION
Example1: Image with blur. (Consider each small sub images and try to
find high contrast and the deblur the portion).
Note: This can be achieved by sharpening the Image.
Example2: Restoring Historical Photographs
ESTIMATION BY EXPERIMENTATION
ESTIMATION BY MODELING
a) Negligible
turbulence
b) Severe
Turbulence
with
k=0.0025
c) Mild
turbulence
k=0.001
d) Low
turbulence
k=0.00025
INVERSE FILTERING
a) Normal
Filter
b) Result of H
cut off
outside the
radaii 40
c) Result of H
cut off
outside the
radaii 70
d) Result of H
cut off
outside the
radaii 85
Note: Image
dominated
with the
noise
MINIMUM MEAN SQUARE ERROR
(WIENER) FILTERING
Hint: Considering
the Signal to Noise
ratio in the image
(SNR)