module 3
module 3
The degradation process is model ed as a degradation function that, together within a additive noise term
,operates on an input image f(x,y) to produce a degraded image g(x,y),some knowledge about the
degradation function H,and some knowledge about the additive noise term ɳ(x,y), the objective of
restoration is to obtain an estimate (x,y)of the original image.We want the estimate to be as close as
possible to the original input image and, in general, the more we know about H and ɳ,the closer (x,y) will be
to f(x,y).
g(x,y)=h(x,y)*f(x,y)+ɳ(x,y)
Where h(x,y) is the spatial representation of the degradation function and, the symbol “ * “ indicates
convolution. We know from the discussion that convolution in the spatial domain is analogous to
multiplication in the frequency domain, so we may write the model in an equivalent frequency domain
representation:
G(u,v) = H(u,v)F(u,v)+N(u,v)
Where terms in capital letters are the Fourier transforms of the corresponding terms.
Noise Models
The principal sources of noise in digital images arise during image acquisition and /or transmission. The
performance of imaging sensors is affected by a variety of factors , such as environmental conditions during
image acquisition, and by the quality of the sensing elements themselves. For instance, in acquiring images
with a CCD camera, light levels and sensor temperature are major factors affecting the amount of noise in
the resulting image. Images are corrupted during transmission due to interference in the channel used for
transmission.
Frequency properties refer to the frequency content of noise in the fourier sense .for ex. When the fourier
spectrum of noise is constant the noise usually is called White noise.
● Gaussian Noise
Because of its mathematical tractability in both the spatial and frequency domains , guassian noise models
are used frequently in practice. In fact this tractability is so convenient that it often results in gussaian models
being used in situations in which they are marginally applicable at best.
where z represents intensity, is the mean (average) value of z , and σ is its standard deviation σ2 is variance
of z.
● Rayleigh noise
Is given
where a > 0 and b is a positive integer ! indicates the factorial. The mean and variance of this density are
given by
● Exponential noise
where a > 0 . The mean and variance of this density are given by
If b >a , intensity b appears as a light dot in the image. Conversely, intensity a will appear like a
dark dot.
Example 5.1: Noisy images and their histograms Figure 5.3 shows a test pattern.
Periodic noise in an image arises typically from electrical or electromechanical interference during
image acquisition. The periodic noise can be reduced significantly via frequency domain filtering,
It is often necessary to estimate the noise probability density functions for a particular imaging
arrangement. When images already generated by a sensor are available, it may be possible to
estimate the parameters of the probability density functions from small patches of reasonably
constant background intensity.
The simplest use of the data from the image strips is for calculating the mean and variance of
intensity levels. Let S denote a stripe and PS (Zi), i = 0,1,2,...,L- 1, denote the probability estimates
of the intensities of the pixels in S , then the mean and variance of the pixels in S are
The shape of the histogram identifies the closest probability density function match. The Gaussian
probability density function is completely specified by these two parameters. For the other shapes
discussed previously, we can use the mean and variance to solve the parameters a and b.
Impulse noise is handled differently because the estimate needed is of the actual probability of
occurrence of the white and black pixels.
Become
Since the noise terms are unknown, subtracting them from g(x ,y ) or G(u,v) is not a realistic option.
In the case of periodic noise, it usually is possible to estimate N(u,v) from the spectrum of
G(u ,v).
Mean Filters
● Arithmetic mean filter
Let Sxy represent the set of coordinates in a subimage window of size m x n, centered at (x ,y ). The
arithmetic mean filter computes the average value of the corrupted image g(x ,y ) in Sxy . The value
of the restored image at point (x ,y ) is the arithmetic mean computed in the region Sxy :
This operation can be implemented using a spatial filter of size m x n in which the coefficients have
value . A mean filter smooths local variation in an image, and noise is reduced as a result of
blurring.
Here, each restored pixel is given by the product of the pixels in the subimage window, raised to the
power.
which works well for some types of noise like Gaussian noise and salt noise, but fails for pepper
noise.
Order-statistic filters
Response based on ordering or ranking the pixel contained in the image area encompassed by the
filter.
● Median filter
Replace the value of the pixel by the median of the intensity levels in the neighborhood of the pixel
▪ Median filters are quite popular because for certain types of random noise, they Provide noise
reduction with considerably less blurring
▪ Effective in the presence of bipolar and unipolar impulse noise.
▪ Max filter finds the brightest points in the image; reduces pepper noise
▪ Min filter finds the darkest points in the image; reduces salt noise.
● Midpoint filter
Computes the midpoint between the maximum and minimum values in the area encompassed by the filter.
d can range from 0 to mn − 1 , When d = 0, the filter is arithmetic mean filter , When d = mn − 1,
the filter is the median filter.
Adaptive filters
Adaptive filters Change behavior based on statistical characteristics of image inside the filter
Better performance but increase in filters complexity
Adaptive, local noise reduction filters
▪ Mean gives a measure of average intensity in the region while variance quantifies contrast
▪ Response of filter on local region Sxy based on four quantities
g(x, y) – value of noisy image at (x, y)
ση2 – variance of corrupting noise
mL – local mean of pixels in Sxy
σL2 – local variance in the neighborhood
▪ Behavior of the filter should be
1. No noise case: If σ2η is zero, return the value of g(x, y)
2. Edges:If local variance is high relative to σ2η , return a value close to g(x, y)
3. If two variances are equal : if σ 2 L ≈ σ 2 η , reduce local noise by averaging
4. An adaptive expression capturing the above is:
Inverse Filtering
The simplest approach to obtain the restoration of images is direct inverse filtering, where we compute
an estimate (u, v), of the transform of the original image simply by dividing the transform of the
degraded image, G (u, v), by the degradation function.
(u, v)= -- eq1
G(u,v) = H(u,v)F(u,v)+N(u,v)
If the degradation function has zero or small values , ythen the ration N(u,v)/H(u,v) could easily
dominate the estimate (u, v).
This approach incorporates both the Degradation function and statistical characteristics of noise into
the restoration process. The main obi=jective is to find an estimate of the uncorrupted image f such
that the mean square error between them is minimized. This error measure is given by
e2 = E {(f- )2} eq 3
where E{.}is the expected value of the argument.itv is assumed that the noise and image are
uncorrelated: that one or the other has zero mean and the intensity levels in the estimate are a linear
function of the levels in the degraded image.
Based on these conditions the minimum of the error function in the eq3 is given in
the frequency domain by the expression
(u, v) = G(u,v)
= G(u,v)
G(u,v)
= H(u,v)