DIP Lecture9
DIP Lecture9
Image Restoration
Image restoration attempts to reconstruct or recover an image that has
been degraded by a degradation phenomenon. As in image enhancement,
the ultimate goal of restoration techniques is to improve an image in some
predefined sense.
Noise Models
Spatial noise is described by the statistical behavior of the gray-level
values in the noise component of the degraded image. Noise can be
modeled as a random variable with a specific probability distribution
function (PDF). Important examples of noise models include:
1. Gaussian Noise
2. Rayleigh Noise
3. Gamma Noise
4. Exponential Noise
5. Uniform Noise
6. Impulse (Salt & Pepper) Noise
Gaussian Noise
The PDF of Gaussian noise is given by
where z is the gray value, μ is the mean and σ is the standard deviation.
Rayleigh Noise
The PDF of Rayleigh noise is given by
If b > a, then gray level b appears as a light dot (salt), otherwise the gray
level a appears as a dark dot (pepper).
The next figure shows degraded (noisy) images resulted from adding the
previous noise models to the above test pattern image.
Figure 9.6 Images and histograms from adding Gaussian, Rayleigh, Gamma, Exponential,
Uniform, and Salt & Pepper noise.
and
Order-Statistics Filters
We have used one of these filters (i.e. median) in the image enhancement.
We now use additional filters (min and max) in image restoration.
Min filter
This filter is useful for finding the darkest points in an image. Also, it
reduces salt noise as a result of the min operation.
(a) (b)
Figure 9.11 (a) image corrupted by salt noise. (b) Result of filtering (a) with a 3×3 min filter.
Max filter
This filter is useful for finding the brightest points in an image. Also,
because pepper noise has very low values, it is reduced by this filter as a
result of the max operation.
(a) (b)
Figure 9.12 (a) image corrupted by pepper noise. (b) Result of filtering (a) with a 3×3 max
filter.
Adaptive Filters
The previous spatial filters are applied regardless of local image
variation. Adaptive filters change their behavior using local statistical
parameters in the mask region. Consequently, adaptive filters outperform
the non-adaptive ones.
(a)
(b) (c)
Figure 9.13 (a) Image corrupted by salt&pepper noise with density 0.25. (b) Result obtained
using a 7×7 median filter. (c) Result obtained using adaptive median filter with Smax = 7.
From this example, we find that the adaptive median filter has three main
purposes:
1. to remove salt-and-pepper (impulse) noise.
2. to provide smoothing of other noise that may not be impulsive.
3. to reduce distortion, such as excessive thinning or thickening of
object boundaries.