Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
4 views

Module-3

Smart manufacturing

Uploaded by

g46517805
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Module-3

Smart manufacturing

Uploaded by

g46517805
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 27

Module- 3

IMAGE RESTORATION
Syllabus
Restoration: Noise models, Restoration in the Presence of Noise Only using Spatial
Filtering and Frequency Domain Filtering, Linear, Position-Invariant Degradations,
Estimating the Degradation Function, Inverse Filtering, Minimum Mean Square Error
(Wiener) Filtering, Constrained Least Squares Filtering.
[Text: Chapter 5: Sections 5.2, to 5.9] L1, L2, L3
Introduction
The principal goal of restoration techniques is to improve an image in some predefined sense.
Restoration is an objective process and it attempts to recover an image that has been degraded
by using a priori knowledge of the degradation phenomenon. Thus, restoration techniques are
oriented toward the modeling the degradation and applying the inverse process in order to
recover the original image.
Image restoration vs. image enhancement:
• Enhancement:
• largely a subjective process.
• Priori knowledge about the degradation is not a must (sometimes no
degradation is involved).
• Procedures are heuristic and take advantage of the psychophysical
aspects of human visual system.
• Restoration:
• more an objective process.
• Images are degraded.
• Tries to recover the images by using the knowledge about the
degradation.
• Image restoration: recover an image that has been degraded by using a prior knowledge
of the degradation phenomenon.
• Model the degradation and applying the inverse process in order to recover the original
image.
• Image enhancement: “improve ” an image subjectively.
• Image restoration: remove distortion from image, to go back to the “original”--objective
process.
Why Image Restoration?
Image restoration is to recover the original image by removing noise and blur from image.
Image blur is difficult to avoid in many situations like photography, to remove motion blur
caused by camera shake, radar imaging to remove the effect of image system response, etc.
Image noise is unwanted signal which comes in image from sensor such as thermal or electrical
signal and Environmental condition such as rain, snow etc.
A Model of Image Degradation / Restoration Process :
As fig. shows, degradation process is modeled as degradation function that, together with the
additive noise term, operates on an input image f(x, y) to produce a degraded image g(x, y).
Given g(x, y), some knowledge about the degradation function H, and additive noise term, the
objective of restoration is to obtain an estimate of the original image.
Estimation of the output image should be as close as possible to 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)
Where h(x, y) is the spatial representation of the degradation function and symbol * indicates
convolution. Convolution in the spatial domain is analogous to multiplication in the frequency
domain.
The model of the degraded image is given in the frequency domain by
G(u, v) = H(u,v)F(u, v) + N(u, v)
where the terms in capital letters are the Fourier transforms of the Corresponding terms of
previous spatial domain expression.
Noise Models
Noise Sources :
The principal sources of noise in digital images arise during image acquisition and/or
transmission.
Image acquisition:
e.g., light levels, sensor temperature, etc.
Sensor performance is affected by environmental conditions during image acquisition, and by
the quality of sensing elements.
Transmission:
Interference in the channel used for transmission.
e.g., lightning or other atmospheric disturbance in wireless network.
Spatial and frequency properties of Noise:

When the Fourier spectrum of noise is constant, the noise is usually called as white noise.
With the exception of spatially periodic noise, we assume that the Noise is independent of
spatial coordinates and that it is uncorrelated with respect to the image itself

Important Noise probability Density Functions:

Statistical behavior of the intensity values in the noise component is a matter of concern in the
analysis of image restoration model. These may be considered random variables, characterized
by a probability density function(PDF). The following are the most common PDFs found in
image processing applications.
Gaussian Noise:
Gaussian noise is characterized by two parameters,  (mean) and σ2 (variance), by
1
p(z)  e( z  )
2
/ 2 2

2

70% values of z fall in the range [(-σ),(+σ)]


95% values of z fall in the range [(-2σ),(+2σ)]
Rayleigh noise:
The PDF of Rayleigh noise is given by
2
 (z  a)e ( za) for z  a
2
/b
p(z)   b
0 for z  a
The mean and variance of this density are given by
b(4   )
  a  b / 4 and  2 
4
a and b can be obtained through mean and variance
Erlang (Gamma) noise:
The PDF of Erlang (Gamma) noise is given by
 ab zb1 az
 for z  0
p(z)   (b 1)! e
0 for z  0
Where a>0, b is a positive integer and “!” indicates factorial.
The mean and variance of this density are given by
b
  b / a and   2
2

a
a and b can be obtained through mean and variance.

Exponential noise:
The PDF of Exponential noise is given by
aeaz for z  0
p(z)  
0 for z  0
The mean and variance of this density are given by
1
  1/ a and   2
2

a
Special case of Erlang PDF with b=1.

Uniform noise:
The PDF of Uniform noise is given by
 1 if a  z  b
p(z)  b  a
 0 otherwise
The mean and variance of this density are given by
(b  a)2
  (a  b) / 2 and  2 
12
Impulse (Salt-and-Pepper) Noise:
The PDF of (bipolar) impulse noise is given by
Pa for z  a
p(z)  P for z  b
 b
0 otherwise

if b  a, gray-level b will appear as a light dot,
while level a will appear like a dark dot.
If either Pa or Pb is zero, the impulse noise is called
unipolar

Above PDFs provide useful tools for modeling a broad range of noise corruption situations
given below.
Gaussian noise arises in an image due to factors such as Electronic circuit noise, sensor noise
due to poor illumination and/or high temperature
The Rayleigh density is helpful in characterizing noise phenomenon in Range imaging.
The exponential and gamma densities find application in laser imaging.
Impulse noise is found in situations where quick transients, such as faulty switching take place
during imaging.
Uniform density is useful as the basis for numerous random number generators that are used in
simulations.
Noisy images and their histograms:
Following figure 3.3 shows a test pattern used to illustrate the characteristics noise PDFs.
Figure 3.4 shows the test pattern after the addition of six types of noise.
Periodic noise:
 Periodic noise in an image arises typically from electrical or electromechanical
interference during image acquisition.
 It can be observed by visual inspection both in the spatial domain and frequency
domain.
 It is a type of spatially dependent noise
 Periodic noise can be reduced significantly via frequency domain filtering
Estimation of Noise Parameters:
Periodic noise:
 Parameters can be estimated by inspection of the Fourier spectrum of the image.
 Periodic noise tends to produce frequency spikes that can be detected by visual
analysis.
Noise PDFs:
 From sensor specifications
 If imaging sensors are available, capture a set of images of plain environments
 If only noisy images are available, parameters of the PDF involved can be
estimated from small patches of constant regions of the noisy images
Consider a subimage denoted by S, and let ps (zi ), i  0, 1, ..., L -1,
denote the probability estimates of the intensities of the pixels in S.
The mean and variance of the pixels in S:
L1

z  zi ps (zi )
i0

   (z  z)2 p (z )
L1
and 2
i s i
i0

The shape of the histogram identifies the closest PDF match.

Restoration in the Presence of Noise Only ̶ Spatial Filtering


Degraded image in the spatial domain and frequency domain are as follows
g(x, y) = h(x, y)*f(x, y) + η(x, y)
and
G(u, v) = H(u,v)F(u, v) + N(u, v)
When the only degradation present in the image is noise, then the above equations become
g(x, y) = f(x, y) + η(x, y)
and
G(u, v) = F(u, v) + N(u, v)

Mean Filters
In this this topic noise reduction capabilities of the various spatial filters are discussed.
Arithmetic mean filter:
The simplest mean filter is arithmetic mean filter.
Let Sxy represent the set of coordinates in a rectangle
subimage window of size m  n, centered at (x, y).
This filter computes the average value of the corrupted image g(x,y) in the area defined by Sx,y.
The value of the Restored image is shown below is at point (x,y) is the arithmetic mean
Computed using the pixels in the region defined by Sx,y.
1
fˆ(x, y)   g(s, t)
mn ( s,t )S x , y

Here, the noise is reduced as a result of blurring.


Geometric mean filters:
An image is restored using this filter is given by the expression
1
  mn
fˆ (x, y)    g(s, t)
( s,t )S x , y 

Generally, a geometric mean filter achieves smoothing comparable to the arithmetic mean
filter, but it tends to lose less image detail in the process.
Harmonic mean filter:
The Harmonic mean filter operation is given by the expression

fˆ(x, y)   mn


1
( s,t )S x ,y g(s, t)

It works well for salt noise, but fails for pepper noise. It does well also with other types of
noise like Gaussian noise.
Contraharmonic mean filter:
This filter yields a restored image based on the expression

 g(s, t)Q1
fˆ(x, y) 
( s,t )Sx , y

 g(s, t)
( s,t )Sx , y
Q

Q: order of the filter


Positive Q works for pepper noise
Negative Q works for salt noise
Q=0arithmetic mean filter
Q=-1harmonic mean filter
It is well suited for reducing the effects of salt-and-pepper noise. Q>0 for pepper noise and
Q<0 for salt noise.
Order Statistic Filters:
Here some additional order statistics filters are discussed. Order statistics filters are spatial
filters whose response is based on ordering (ranking) the values of the pixels contained in the
image area encompassed by the filter. The ranking result determines the response of the filter.
Median filter:
In this method value of a pixel is replaced by the median of the intensity levels in the
neighborhood of that pixel.
 Median represents the 50th percentile of a ranked set of numbers

fˆ(x, y)  median {g(s,t)}


(s,t)S x , y

It has excellent noise reduction capabilities for certain types of random noise.
Less blurring than linear smoothing filters of similar size.
It is effective in the presence of both bipolar and unipolar noise.
Max and min filter:
Max filter uses the 100th percentile of a ranked set of numbers
Maxfilter
fˆ(x, y)  max {g(s,t)}
(s,t)S x , y

It is Good for removing pepper noise present in the image.


Min filter is the oth percentile of a ranked set of numbers.
Min. filter
fˆ(x, y)  min {g(s,t)}
(s,t)S x , y

It is Good for removing salt noise present in the image.


Midpoint filter:
The midpoint filter computes between the maximum and Minimum Values in the area
encompassed by the filter.
1 
fˆ(x, y)  max {g(s, t)}  min {g(s, t)} 
2  
( s,t )S ( s,t )S
xy xy 

This filter combines order statistics and averaging filter. It works best for randomly distributed
noise, like Gaussian or uniform noise.
Alpha-Trimmed Mean Filter:

We delete the d / 2 lowest and the d / 2 highest intensity values of


g(s, t) in the neighborhood Sxy . Let gr (s, t) represent the remaining
mn - d pixels.
A filter formed by averaging these remaining pixels is called an Alpha-trimmed mean filter.

g
1
fˆ(x, y)  r (s, t)
mn  d ( s,t )Sxy

Where d is ranging from 0 to mn-1. when d = 0, it becomes arithmetic mean filter. When d =
mn – 1, this filter becomes a median filter.
gr(s,t) represent the remaining mn-d pixels
It is useful in situations involving multiple types of noise like a combination of salt-and-pepper
and Gaussian.
Adaptive filters
The behavior of adaptive filter changes based on statistical characteristics of the image inside
the filter region defined by the mхn rectangular window.
The performance is superior to that of the mean filters or order statistics filter.
Filter complexity is increased when the filter is designed for improved filtering power.
Adaptive, Local Noise Reduction Filters:
The simplest statistical measures of random are its mean and variance.
The mean gives a measure of average intensity in the region over which the mean is computed.
The variance gives a measure of contrast in that region.
Filter is to operate on local region Sxy
Sxy : local region
The response of the filter at the center point (x,y) of Sxy
is based on four quantities:
(a) g ( x, y), the value of the noisy image at (x, y);
(b) 2 , the variance of the noise corrupting f ( x, y)
to form g (x, y);
(c) mL , the local mean of the pixels in Sxy ;
(d)  L2 , the local variance of the pixels in S xy .

The behavior of the filter:


(a) if  
2
is zero, the filter should return simply the value
of g ( x, y).
(b) if the local variance is high relative to  
2
, the filter
should return a value close to g ( x, y);
(c) if the two variances are equal, the filter returns the
arithmetic mean value of the pixels in Sxy .
An adaptive expression for obtaining f (x, y)
based on the assumptions:
2
f ( x, y)  g ( x, y)  
  g ( x, y)  mL 
L2
Adaptive Filters:
Adaptive Median Filters :
Median filter is effective for removing salt-and-pepper noise.
The density of the impulse noise can not be too large. This filter preserves image details
while smoothing non-impulse noise.

The adaptive median-filtering works in two stages:


Stage A:
A1 = zmed  zmin ; A2 = zmed  zmax
if A1>0 and A2<0, go to stage B
Else increase the window size
if window size  Smax , repeat stage A; Else output zmed
Stage B:
B1 = zxy  zmin ; B2 = zxy  zmax
if B1>0 and B2<0, output zxy ; Else output zmed

This filter has three main purposes:


To remove salt and pepper (impulse) noise.
To provide smoothing of other noise that may not impulsive, and
To reduce distortion such as excessive thinning or thickening of object boundaries.
The purpose of stage A is to determine if the median filter output, z med , is an impulse (black
or white) or not. If the condition zmin < zmed < zmax holds, then zmed can not be an impulse. In this
case go to stage B and test to see if the point in the center of the window, zxy, is itself an impulse.
If the condition B1>0 AND B2<0 is true, then zmin < zxy < zmax , and zxy can not be an impulse.

If the condition B1 > 0 AND B2 < 0 is false, then either zxy = zmin or zxy = zmax. In either case
the value of the pixel is an extreme value and the algorithm outputs the median value z med
which is not a noise impulse.
Periodic Noise Reduction by Frequency Domain Filtering
The basic idea
Periodic noise can be analyzed and filtered effectively using frequency domain techniques.
The basic idea is that the Periodic noise appears as concentrated bursts of energy in the Fourier
transform, at locations corresponding to the frequencies of the periodic interference.
Approach
• A selective filter is used to isolate the noise.
• Band reject, band pass, and notch filters are used as tools for periodic noise reduction.
• Band reject filters remove or attenuate a band of frequencies about the origin of the
Fourier transform.
Band reject filtering is for noise removal in applications where the general locations of noise
components in frequency domain is approximately known.
Example is an image corrupted by additive periodic noise that can be approximated as 2 D
sinusoidal functions. Fourier transform of sine consists of two impulses that are mirror images
of each other about the origin of the transform.
The sinusoidal noise components appear as symmetric pairs of bright dots can be observed in
its Fourier Transform.
Band reject Filters
The transfer functions of ideal, butter-worth and Gaussian filters are as shown below.Its
perspective plots are shown in Figure 3.9.

Ideal band reject filter:


Band reject filters remove or attenuate a band of frequencies about the origin of the Fourier
Transform.
The transfer function of ideal band reject filter is given by
 W
1
 if D(u, v)  D0 
 W 2 W
H (u, v)  0 if D0   D(u, v)  D0 
 2 W 2
1 if
D(u, v)  D0 
 2
Where D(u,v) is the distance from the origin of the centred frequency rectangle, W is the width
of the band of frequency and D0 is the radial centre.
Similarly, the transfer function of butter-worth band reject filter of the order n is the given
by the expression
1
H (u, v)  
1  2D(u, v)W 2 2n
D (u, v)  D 
 0 

And transfer function of Gaussian band reject filter of the order n is the given by the
expression
1  D2 (u,v)D2 
  0 

2  D(u,v)W 
H (u,v) 1 e




















Band-pass Filters
Band-pass filter performs the opposite of a band-pass filter.
The transfer function of Band-pass filter is obtained from corresponding transfer function of
Band – reject filter.
Hbp (u, v)  1 Hbr (u, v)

Generally It removes too much image details. It is quite useful in isolating the effects on an
image caused by selected frequency bands.
Notch Filters
Notch filter rejects (or passes) frequencies in predefined neighborhoods about a center
frequency.
It appears in symmetric pairs about the origin because the Fourier transform of a real valued
image is symmetric.
The transfer function of Notch pass filter is
HNP(u,v) = 1 – HNR(u,v)
where HNP(u,v) is the transfer function of the notch pass filter Corresponding to the notch reject
filter with transfer function HNR(u,v). This filter reduces the noise in the image with out
introducing appreciable blurring. The transfer functions of ideal, Butterworth and Gaussian
notch (reject) filters are as follows.

Figure 3.12 shows the 3 D plots of ideal, Butterworth and Gaussian notch (reject) filters.
The notch filter reduces the noise in the image with out blurring the given image.
Optimum Notch Filter
Several interference components are present in the methods discussed in the preceding sections
are not always acceptable because they remove much image information.
Interference components are generally are not single frequency bursts, instead the components
tend to have broad skirts that carry information about the interference pattern and the skirts are
not always easily detectable. Image and its Interference pattern can be seen in Figure 3.14

This filtering method reduce the effect of degradations of the image.


The method discussed here is optimum, in the sense that it minimizes local variances of the
restored estimated image.
Procedure for restoration tasks in multiple periodic interference
Isolate the principal contributions of the interference pattern.
Subtract a variable, weighted portion of the pattern from the corrupted image.
As a first step extract the principal frequency components of the interference pattern
Place a notch pass filter at the location of each spike.
N(u, v)  HNP (u, v)G(u, v)
Where G(u,v) is the Fourier transform of the corrupted image. After a filter has been selected,
the corresponding pattern in the spatial domain is obtained from the expression.
(x, y)  HNP
In this section, we try to improve the restored image by introducing a modulation function.

fˆ(x, y)  g(x, y)  w(x, y)ˆ(x, y) ............... (1)

Here the modulation or weighting function w(x, y) is a constant within a neighborhood of size
(2a+1) by (2b+1) about a point (x,y). Eqn. (1) is an estimate of f(x, y).
We optimize its performance by minimizing the local variance of the restored image at the
position (x,y). 2
a
b  ˆ ˆ 
  f (x  s, y  t)  f (x, y)  ..(2)
1
 (x, y) 
2

(2a 1)(2b 1) sat b  


AverageValue..of ..eqn.(1)

b fˆ(x  s, y  t)
a
1
fˆ (x, y)  
(2a 1)(2b 1) satb
Points on or near Edge of the image can be treated by considering partial neighborhoods or by
padding border with 0s. Sub. Eqn.(1) in to (2) yields.
a
1
 2 (x, y)   b {[ g(x  s, y  t)
(2a 1)(2b 1) satb
 w(x  s, y  t)ˆ(x  s, y  t)]
[g (x, y)  w(x, y)ˆ(x, y]}2 .... (3)
Assuming that w(x, y) remains constant over the neighborhood gives the approximation.
w(x  s, y  t)  w(x, y) for  a  s  a and  b  t  b ... (4)
 w(x, y)ˆ(x, y)  w(x, y)ˆ (x, y) .... (5)
With these approximations, eqn. (3) becomes
1
 2 (x, y)  sa b {[ g(x  s, y  t)
a

(2a 1)(2b 1) t b

 w(x, y)ˆ(x  s, y  t)]


[g (x, y)  w(x, y)ˆ (x, y)}2...... (6)

To minimize σ2(x, y), we solve


 2 (x, y) 
 
0.....(7)
w(x, y)
g(x, y)̂ (x, y)  g(x, y)̂ (x, y) ....
 w(x, y)  (8)
ˆ2 (x, y) ˆ 2 (x, y)
To obtain the restored image, we compute w(x, y) from eqn.(8) and then use Eqn.(1)

Linear, Position-Invariant Degradations

The input – output relationship in the above figure before the Restoration stage is expressed as

g(x, y)  H  f (x, y)    (x, y)


H is linear
H  af1 (x, y)  bf 2 (x, y)   aH  f1 (x, y)   bH  f 2 (x, y) 
f1 and f2 are any two input images.

If a = b = 1, above equation becomes


H[f1(x,y) + f2(x,y)] = H[f1(x,y)] + H[f2(x,y)]
An operator having the input-output relationship
g ( x, y)  H  f ( x, y) is said to be position invariant
if
H  f ( x   , y   )  g ( x   , y   )
for any f ( x, y) and any  and  .

f ( x, y)     

Assume for a moment that  (x, y)  0


if H is a linear operator,
g(x, y)  H  f (x, y)
 H     f ( ,  ) (x   , y   )d d  


   

 
   H  f ( ,  ) (x   , y   )  d d 
 
 

   f ( ,  )H  (x   , y   )  d  d  
 

Assume for a moment that  (x, y)  0


if H is a linear operator and position invariant,
H  (x   , y   )  h(x   , y   )
g(x, y)  H  f (x, y)
 

   f ( ,  )H  (x   , y   )  d  d 
 
 
  
 
f ( ,  )h(x   , y   )d  d 

In the presence of additive noise,


if H is a linear operator and position invariant,

 
f ( ,  )h( x   , y   )d  d    ( x, y)
g ( x, y)     

 h( x, y) f ( x, y)   (x, y)

G(u, v)  H (u, v)F (u, v)  N (u, v)

Many types of degradation can be approximated by linear, position-invariant processes


Extensive tools of linear system theory are available. In this situation, restoration is image
deconvolution.
Estimating the Degradation Function
Three principal ways to estimate the degradation function
1. Observation
2. Experimentation
3. Mathematical Modeling.
Estimation by Image Observation:
Let the observed sub-image be denoted by gs(x, y), and let the processed sub-image be denoted
ˆ
f s (x, y)
by . Then, assuming that the effect of noise is negligible because of selection of
strong signal area, it follows that

Gs (u, v)
H (u, v) 
s
Fsˆ (u, v)
Now, we can construct a function H(u, v) on a large scale, but having the same shape.
Estimation by Experimentation:
If equipment similar to the equipment used to acquire the degraded image is available, it is
possible in principle to obtain an accurate estimate of the degradation.
Images similar to the degraded image can be acquired with various system settings until they
are degraded as closely as possible to the image we wish to restore.
An impulse is simulated by a bright dot of light, as bright as possible to reduce the effect of
noise. Then the estimated function is
G(u, v)
H (u, v) 
A
where G(u,v) is the Fourier Transform of the observed image, and A is the constant describing
the strength of the impulse.
Mathematical Modeling:
Environmental conditions cause degradation. A degradation model is based on physical
characteristic of atmospheric turbulence.

k : a constant tha
the nature of the turbule
With the exception of 5/6 power on the exponent, this equation has the same form as the
Gaussian low pass filter.
Derive a mathematical model from basic principles
E.g., An image blurred by uniform linear motion between the image and the sensor during
image acquisition.
Suppose that an image f (x, y) undergoes planar motion,
x0 (t) and y0 (t) are the time-varying components of motion
in the x- and y-directions, respectively.
The optical imaging process is perfect. T is the duration
of the exposure. The blurred image g(x, y)
g (x, y)  T f  x  x (t), y  y (t)dt
0 0 0

where T is exposure time.


g ( x, y)  T
f x  x (t ), y  y (t )dt
 0
0 0

G(u, v)   
 
g ( x, y)e j 2 (ux vy ) dxdy
f  x  x (t), y  y (t) dt  e j 2 (ux vy ) dxdy
 
 
T

 


   0 f x  x 


0 0
T
 (t), y  y (t)  e  j 2  (ux vy )
dxdy dt

0    0 0 

 j 2  ux0 (t )vy0 (t ) 
 F (u, v)e
T
 dt
0

 j 2 ux 0 (t )vy0 (t )
 F (u, v)  e
T
dt
0

 j 2 ux0 (t )vy0 (t )
T
H (u, v)   e
0
dt
Suppose that the image undergoes uniform linear motion
in the x-direction only, at a rate given by x0 (t)  at / T .
T
H (u, v)  e  j 2 ux0 (t ) dt
0
T
  e j 2uat /T dt
0

T
 sin( ua)e jua
 ua
Suppose that the image undergoes uniform linear motion
in the x-direction and y-direction, at a rate given by
x0 (t)  at / T and y0 (t)  bt / T
T  j 2 ux0 (t )vy0 (t )
H (u, v)   e 0
dt
T
  e  j 2 [ua vb ]t /T
dt
0

T
 sin (ua  vb)e j (uavb)
 (ua  vb)

Inverse Filtering
The simplest approach to restoration is direct inverse filtering. Estimation of the transformation
of the original image is obtained by dividing the transform of the degraded image, G(u, v), by
the degradation function as given below
G(u, v)
F̂(u, v) 
H (u, v)

G(u,v) = H(u,v)F(u,v) + N(u,v)


N (u, v)
F̂(u, v)  F (u, v) 
H (u, v)
If the degradation has zero or very small values, then the ratio N/H could easily dominate our
estimation of F . One approach to get around the zero or small-value problem is to limit the filter
frequencies to value near the origin.
N (u, v)
F̂(u, v)  F (u, v) 
H (u, v)

1. W
because N (u
2. If the degradation func
small values, then the ratio N (u, v
easily dominate the estimate F (u, v).
Minimum Mean Square Error (Wiener) Filtering
This approach incorporate both the degradation function and statistical characteristic of noise
into the restoration process.
Objective is to find an estimate of the uncorrupted image such that the mean square error
between them is minimized. This error measure is given by
e2  E[( f  fˆ)2 ]

where E {.} is the expected value of the argument. It is assumed that the noise and the image
are uncorrelated.
The minimum of the error function is given in the frequency domain by the Expression.
 H *(u, v)S f (u, v) 
Fˆ (u, v)   G(u, v)

 S f (u, v) H (u, v)  S (u, v) 
2

 H *(u, v) 
  2 G(u, v)
 H (u, v)  S (u, v) / S f (u, v) 
 1 H (u, v)
2 
  G(u, v)
 H (u, v) H (u, v) 2  S (u, v) / S f (u, v) 

S(u, v)  N (u, v) 2  power spectrum of thenoise

S f (u, v)  F (u, v) 2  power spectrum of the undegraded image


F (u, v)   1 | H (u, v) |2 
H (u, v) | H (u, v) | S (u, v) / S
2
 G(u, v)
(u, v)
  f 


H (u, v) : degradation function
H *(u, v): complex conjugate of H (u, v)
| H (u, v) |2  H *(u, v)H (u, v)
S (u, v) | N (u, v) |2  power spectrum of the noise
S f (u, v) | F (u, v) |2  power spectrum of the undegraded image

G(u, v) is the transform of the degraded image. The restored image in the Spatial domain is
obtained by the inverse Fourier transform of the frequency domain estimate.
If the noise is zero, noise power spectrum vanishes and the Wiener filter reduces to inverse
filter.

A number of useful measures are based on the power spectra of noise and the un-degraded
image. These are as follows.

This is an important metric used in characterizing the performance of restoration algorithm.


Mean Square error given in statistical form can be approximated in terms of summation
involving the original and restored images.
 H (u, v)
2 
Fˆ (u, v)   1 
G(u, v)
 H (u, v) H (u, v)  S (u, v) / S f (u, v) 
2

When the power spectrum of undegraded image can not be estimated, then the above equation
is approximated by the following expression.
 1 
F̂(u, v)  H (u, v) 2
G(u, v)
 2
 H (u, v) H (u, v)  K 

Constrained Least Squares Filtering


In Wiener filter, the power spectra of the undegraded image and noise must be known.
Although a constant estimate is sometimes useful, it is not always suitable. Constrained least
squares filtering just requires knowledge of only the mean and variance of the noise.

From the definition of convolution, and from the explanation of vector and matrix
operations, We can express following equation.
g(x, y)  f (x, y)  h(x, y)   (x, y)
This can be written in matrix form as
g  Hf  η
Here H is sensitive to noise, and this can be minimized by second derivative of an image
called Laplacian.
It is desired to find the minimum of a criterion function, defined as

 
M 1 N 1
C     2 f (x, y)
2

x0 y0

subject to the constraint


2
g  Hfˆ  η 2

Where w  w w is the Euclidean vector norm, and fˆ estimate of the


2 T

undegraded image.
The frequency domain solution to this optimization is given by the expression
 
F (u, v)   H *(u, v) G(u, v)
 2 
 | H (u, v) |  | P(u, v) | 
2

P(u, v) is the Fourier transform of the function


 0 1 0 
p(x, y)  1 4 1
 
 0 1 0 
 is a parameter
g is adaptively adjusted to achieve the best result.

If  = 0, above equation becomes inverse filtering.


Procedure for computing  by iteration is as follows.
ˆ
Define r  g  Hf , It can be shown that  ( )  r r  r
T 2

r 2  η 2  a ......(1)
We want to adjust gamma so that
where a = accuracy factor
1. Specify an initial value of 
2

2. Compute r
3. Stop if (1) is satisfied 

r 2
 η 2
a
Otherwise return step 2 after increasing  if
r 2  η 2 a
or decreasing  if
Use the new value of  to recompute
 H *(u, v) 

ˆ
F (u, v)   2 G(u, v)
 H (u, v)   P(u, v) 
2

2 2
In order to use this algorithm, we need the quantities r and η
Question Bank
1) With necessary equation s and graph, explain any four noise probability
density functions.
2) Explain minimum mean square error filtering method of restoring images.
3) Explain how image degradation is estimated using, (i) Observation (ii)
Mathematical modeling.
4) Explain the order statistics filters used for restoring images in the presence
of noise.
5) Explain the following noise models. i) Gaussian noise ii) Raleigh Noise
iii) Impulse noise iv) Uniform noise.
6) Explain inverse filter and Weiner filter with the help of equations. Explain
the advantages of Wiener filter over inverse filter.
7) Define the process of image restoration. How is restoration is different
from enhancement?
8) What are adaptive filters ? Explain adaptive mean filter and its advantages.
9) What are order statistics filters ? List any four such filters.
10) Explain the basic model of image restoration process. Explain any
four important noise probability density functions.
11) Explain minimum mean square error (Wiener) filtering in image
processing.
12) Explain adaptive mean filter and list its advantages.
13) With necessary mathematical equations, explain estimate the
degradation function by modeling.

You might also like