Ch-4 Restortion
Ch-4 Restortion
Education
1
Chapter Three
Image Restortion
2
Image Restoration
Noise in images is the vital factor which degrades the
quality of the images.
Reducing noise from the satellite images, medical images
etc., is a challenge for the researchers in digital image
processing.
Several approaches are there for noise reduction.
What is image restoration?
Image restoration is the process of recovering the
original image that has been degraded by noise using
a prior knowledge of the degradation phenomenon.
Goal of image restoration
Improve the quality and naturalness of an image in some
predefined sense
Features
A Prior knowledge:
A prior knowledge of the degradation phenomenon is
considered
Objective process:
Modeling the degradation and apply the inverse process to
recover the original image
Noise in an image
Noise is a random variation of image density,
which is pixel level variations in digital images.
It is a key image quality factor; nearly as important as
sharpness.
g(x,y)=h(f(x,y))+h(x,y)f(x,y)=h-1(g(x,y))-h(x,i)
Types of Image Noise
Salt and pepper noise
Its also known as impulse noise. this
noise can be caused by sharp & sudden
disturbances in the image signal.
Its appearance is randomly scattered
white or black (or both)
An effective noise reduction method for
this type of noise is a median filter or a
morphological filter.
Gaussian noise
Gaussian noise is statistical noise having
a probability density function (PDF)
equal to that of the normal distribution
Gaussian noise is caused by random
fluctuations in the signal.
its modeled by random values added to
an image.
Types of Image Noise
Speckle noise
It is a granular 'noise' that inherently exists
in and degrades the quality of the image
It is caused by coherent processing of
backscattered signals from multiple
distributed targets.
Speckle noise can be modeled by random
values multiplied by pixel values of an
image.
Periodic noise
Periodic noise is appearance when signal is
subject to a periodic, rather than a random
disturbance.
Periodic noise in an image arises typically
from electrical or electromechanical
interference during image acquisition.
Periodic noise can be reduced significantly
via frequency domain filtering
Properties of image noise
Spatial properties of noise (e.g. additive noise)
Statistical behavior of the gray-level values of pixels
Noise parameters, correlation with the image
Apply spatial domain image restoration techniques
one pixel at a time and the calculation is repeated until the entire
image has been filtered and a "new" image has been generated.
By varying the calculation performed and the weightings of the
(x, y-1)
(x-1, y) P (x,y) (x+1, y)
(x, y+1)
Max filter
f ( x, y ) max g ( s, t )
( s ,t )S xy
Spatial Noise filtering techniques
Mean filtering: current pixel will be replaced by
average of its neighboring pixel values
Median filtering: current pixel will be replaced by
median or middle pixel value of its neighboring
pixels
New generated filtering: current pixel will be
replaced by arithmetic mean of mid-1, mid, mid+1
of its neighboring pixels
Midpoint filter
f ( x, y ) 1 max g ( s, t ) min g ( s, t )
2 ( s ,t )S xy ( s ,t )S xy
Spatial Filtering: Mean Filtering
19
Mean filtering Example
• What is the new image obtained after applying
mean filtering using a 3x3 window
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 90 90 90 90 90 0 0
0 0 0 90 90 90 90 90 0 0
0 0 0 90 90 90 90 90 0 0
0 0 0 90 0 90 90 90 0 0
0 0 0 90 90 90 90 90 0 0
0 0 0 0 0 0 0 0 0 0
0 10 20 30 30 30 20 10
0 0 90 0 0 0 0 0 0 0
0 20 40 60 60 60 40 20
0 0 0 0 0 0 0 0 0 0
0 30 60 90 90 90 60 30
0 30 50 80 80 90 60 30
0 30 50 80 80 90 60 30
0 20 30 50 50 60 40 20
10 20 30 30 30 30 20 10
10 10 10 0 0 0 0 0
Spatial filtering: Median Filtering
• Median filtering is very widely used in digital image
processing because it preserves edges while removing
noise.
• The median filter is a sliding-window spatial filter.
It replaces the value of the center pixel with the
median of the intensity values in the neighborhood
of that pixel.
Median filtering is a nonlinear operation often used
in image processing to reduce "salt and pepper"
noise because of its appearance as white and black
dots overlaid on an image.
A median filter is more effective than convolution
when the goal is to simultaneously reduce noise and
preserve edges.
• For every pixel, a 3x3 neighborhood with the pixel as
center is considered. In median filtering, the value of
the pixel is replaced by the median of the pixel values
in the 3x3 neighborhood.
Example: The resulting image after applying
median filtering
Exercise 1
What is the new value of the central pixel with value 8
(in the below 3x3 image) after applying median
filtering?
Answers: a) 7 b) 1 c) 3 d)9
Exercise 2
What are the values of the
shaded boxes with yellow colour
after applying median filtering?
Answers:
c)
a) b)
Assignment for next week
of neighboring pixels.
The following figure shows how to compute the (4,2) output pixel of the
33