Unit3 Digital Image Processing
Unit3 Digital Image Processing
Unit-3
Image Restoration
1. Image Acquisition
2. Transmission
During Transmission
Gaussian Noise
Rayleigh Noise
Erlang (Gamma) Noise
Exponential Noise
Uniform Noise
Impulse (Sal & Pepper Noise)
Periodic Noise
Spatial Noise Descriptor
z Gray level
µ Mean of average value of z
σ Standard Deviation of z
σ2 Variance of z
z Gray level
µ Mean of average value of z
σ2 Variance of z
Plot of function
Erlang (Gamma) Noise Model
σ2 Variance of z
Plot of function
Exponential Noise Model
z Gray level
µ Mean of average value of z
σ2 Variance of z
a>0
Plot of function
Uniform Noise Model
z Gray level
µ Mean of average value of z
σ2 Variance of z
Plot of function
Impulse (Salt & Pepper) Noise Model
z Gray level
If either Pa or Pb = 0 Unipolar
Impulse Noise otherwise Bipolar
Impulse Noise.
Plot of function
This test pattern is well-suited for illustrating the noise models, because it is composed
of simple, constant areas that span the grey scale from black to white in only three
increments. This facilitates visual analysis of the characteristics of the various noise
components added to the image.
Restoration using Spatial Filtering
We can use spatial filters of different kinds to remove different
kinds of noise.
1
mn
fˆ ( x, y ) g ( s, t )
( s ,t )S xy
Harmonic Mean Filter
Works well for salt noise but fails for pepper noise.
mn
fˆ ( x, y)
1
( s ,t )S xy g ( s, t )
Example:
Image
Original Corrupted
Image By Gaussian
Noise
Median Filter
fˆ ( x, y ) median{g ( s, t )}
( s ,t )S xy
fˆ ( x, y ) max {g ( s, t )}
( s ,t )S xy
fˆ ( x, y ) min {g ( s, t )}
( s ,t )S xy
Mid Point Filter Good for Gaussian / Uniform Noise
Image Result of 1
Corrupted Pass With A
By Salt And 3*3 Median
Pepper Noise Filter
Result of 2 Result of 3
Passes With Passes With
A 3*3 Median A 3*3 Median
Filter Filter
Example:
Image
Image Corrupted
Corrupted By Salt
By Pepper Noise
Noise
Result Of
Result Of
Filtering
Filtering
Above
Above
With A 3*3
With A 3*3
Min Filter
Max Filter
Example (Combined):
Image Image Further
Corrupted Corrupted
By Uniform By Salt and
Noise Pepper Noise
Filtered By Filtered By
5*5 Arithmetic 5*5 Geometric
Mean Filter Mean Filter
Filtered By Filtered By
5*5 Median 5*5 Alpha-Trimmed
Filter Mean Filter
Periodic Noise Image corrupted by
Sinusoidal noise
Typically arises due to electrical / Electro-
mechanical interference during image
acquisition.
Bandreject Filter
Bandpass Filters
Notch Filter
Bandreject Filter
W
1 if D(u, v) D0 2
W W
H (u, v) 0 if D0 D(u, v) D0
2 2
1 if D(u, v) D0 W
2
D(u, v) = Distance of point from the origin
W = Width of the band
D0 = Radial Centre
Butterworth Bandreject Filter:
If degradation has ZERO or less value then N(u, v) / H(u, v) dominates the
estimated F’(u, v).
Find an estimate f’ of the uncorrupted image f such that mean square error
between them is minimized. Error measure is given by:
Assumptions:
image and noise are uncorrelated.
One or other has Zero mean
Gray levels in the estimate are a linear function of levels in the
degraded image.
Maximum Mean Square Error (Wiener) Filtering…
Based on these conditions:
Singularity & Ill-condition?