EEE F435 (2020-21-I) : Digital Image Processing
EEE F435 (2020-21-I) : Digital Image Processing
EEE F435 (2020-21-I) : Digital Image Processing
• For the most part, image restoration is an objective process as opposed to image
enhancement.
• Some restoration techniques are best formulated in the SPATIAL domain, while
others are better suited for FREQUENCY domain.
• For example, when the only degradation is ADDITIVE NOISE, spatial processing is
applicable.
• On the other hand, degradations such as IMAGE BLUR are best approached using
frequency domain filters.
A Model of the Image
Restoration/Degradation Process
• The following diagram shows the degradation process modelled as a degradation
function H that, together with an additive noise η(x,y), operates on an input image
f(x,y),to produce a degraded image g(x,y).
• Given g(x,y), some knowledge about H and η(x,y), the objective of image restoration
is to obtain an estimate, of the original input image.
• If H is a linear position-invariant process ,then the degraded image is given in the
spatial domain by
g(x,y) = h(x,y) * f(x,y) + η(x,y)
and in frequency domain G(u,v) = H(u,v)F(u,v) + N(u,v)
Some Important Noise
Degraded images
Original image
Histogram
IMAGE DEGRADATION WITH
ADDITIVE NOISE (CONTD.)
Degraded images
Original image
Histogram
Periodic Noise
fˆ ( x , y )
mn g ( s , t ) Q 1
fˆ ( x, y )
1 ( s ,t )S xy
( s ,t )S xy g ( s, t ) g ( s , t ) Q
( s ,t )S xy
• Works well with salt noise, but fails where Q is called the order of the filter
for pepper noise • Well suited for reducing or virtually
eliminating the effects of salt and
pepper noise
• Also does well with gaussian noise
Image Image
obtained obtained
using a 3x3 using a 3x3
contra- contra-
harmonic harmonic
mean filter mean filter
With Q = 1.5 With Q=-1.5
ORDER -STATISTICS FILTERS
•These are a set of nonlinear spatial filters.
•Their response is based on ordering(ranking) the pixels contained in the image area
encompassed by the filter, and then replacing the value of the central pixel with the
value determined by the ranking result.
Statistic parameters
subimage Mean, Median, Mode,
Min, Max, Etc.
Moving
window
Output image
MEDIAN FILTER
fˆ ( x, y ) median g ( s, t )
( s ,t )S xy
Sorted
Degraded image Moving array
window
Filter output
Normally, impulse noise has high magnitude and is isolated. When we sort
pixels in the moving window, noise pixels are usually at the ends of the
array. Therefore, it’s rare that the noise pixel will be a median value.
MEDIAN FILTER EXAMPLE
1 2
Image
corrupted
by salt-and-
pepper
noise with
pa=pb= 0.1
3 4
MIN FILTER
• Replaces value of a pixel by the minimum of the gray levels in the
neighborhood of the pixel.
• Value of restored image : fˆ ( x, y ) min g ( s, t )
( s ,t )S xy
Image Image
obtained obtained
using a 3x3 using a 3x3
max filter min filter
Periodic Noise Removal By
Frequency Domain Filtering
BANDREJECT FILTERS
From left to right, perspective plots of ideal, Butterworth (order 1), and
Restored
Noise
Image
ADAPTIVE FILTERS:A brief introduction
• Filters selected so far are applied to an image without regard for
how image characteristics vary from one point to another.