Beruflich Dokumente
Kultur Dokumente
Lecture # 07
Image Restoration
Outline
Noise Modelling
Lecture # 7
Image Restoration
Lecture # 7
Lecture # 7
If H is a linear,
Lecture # 7
Lecture # 7
Noise Sources
Image acquisition
e.g., light levels, sensor temperature, etc.
Transmission
e.g., lightning or other atmospheric disturbance in wireless
network
Lecture # 7
Gaussian noise
Electronic circuit noise, sensor noise due to poor illumination and/or high
temperature
Rayleigh noise
Range imaging
Exponential noise:
Laser imaging
generators
Lecture # 7
Lecture # 7
10
Lecture # 7
17
( ), ( )
95% of its values will be in the range
( 2 ), ( 2 )
Digital Image Processing
Lecture # 7
18
Rayleigh Noise
The PDF of Rayleigh noise is given by
2
( z a )2 / b
for z a
( z a )e
p( z ) b
0
for z a
The mean and variance of this density are given by
z a b / 4
b(4 )
2
4
Lecture # 7
19
p( z ) (b 1)!
0
for z 0
for z a
2 b / a2
Lecture # 7
20
Exponential Noise
The PDF of exponential noise is given by
ae az
p( z )
0
for z 0
for z a
2 1/ a 2
Lecture # 7
21
Uniform Noise
The PDF of uniform noise is given by
1
p( z ) b a
0
for a z b
otherwise
2 (b a)2 /12
Lecture # 7
22
p( z ) Pb
0
for z a
for z b
otherwise
Lecture # 7
23
Lecture # 7
24
Lecture # 7
25
Lecture # 7
26
Effects of
noise on
images and
histograms
Gaussian
Exponential
Impulse
(salt-andpepper)
Lecture # 7
27
Effects of
noise on
images and
histograms
Rayleigh
Gamma
(Erlang)
Uniform
Digital Image Processing
Lecture # 7
28
Periodic Noise
Lecture # 7
29
Lecture # 7
30
Noise estimation
Lecture # 7
31
Lecture # 7
32
z zi ps ( zi )
i 0
L 1
and
2 ( zi z )2 ps ( zi )
i 0
Lecture # 7
33
Spatial Filtering
Noise model without degradation
g ( x, y ) f ( x, y ) ( x, y )
and
G (u, v) F (u, v) N (u, v)
Lecture # 7
34
mn ( s ,t )Sxy
Lecture # 7
35
f ( x, y ) g ( s , t )
( s ,t )S xy
1
mn
Lecture # 7
36
mn
( s ,t )S xy
1
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.
Lecture # 7
37
g ( s, t )Q 1
g ( s, t )Q
( s ,t )S xy
( s ,t )S xy
Lecture # 7
38
39
Digital Image Processing
Lecture # 7
39
11/5/2015
Digital Image Processing
40
Lecture # 7
40
Lecture # 7
41
Lecture # 7
42
Lecture # 7
43
Max filter
f ( x, y ) max g (s, t )
( s ,t )S xy
Min filter
f ( x, y ) min g (s, t )
( s ,t )S xy
Midpoint filter
1
f ( x, y ) max g ( s, t ) min g ( s, t )
( s ,t )S xy
2 ( s ,t )S xy
mn d ( s ,t )Sxy
We delete the d / 2 lowest and the d / 2 highest intensity values of
g ( s, t ) in the neighborhood S xy . Let g r ( s, t ) represent the remaining
mn - d pixels.
11/5/2015
47
Adaptive Filters:
Adaptive, Local Noise Reduction Filters (1)
S xy : local region
The response of the filter at the center point (x,y) of S xy
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 S xy ;
(d) L2 , the local variance of the pixels in S xy .
Adaptive Filters:
Adaptive, Local Noise Reduction Filters (2)
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 S xy .
Adaptive Filters:
Adaptive, Local Noise Reduction Filters (3)
f ( x , y ) g ( x , y ) 2 g ( x , y ) mL
L
2
Adaptive Filters:
Adaptive Median Filters (1)
The notation:
zmin minimum intensity value in S xy
zmax maximum intensity value in S xy
zmed median intensity value in S xy
z xy intensity value at coordinates ( x, y )
Smax maximum allowed size of S xy
Adaptive Filters:
Adaptive Median Filters (2)
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 = z xy zmin ;
B2 = z xy zmax
Adaptive Filters:
Adaptive Median Filters (2)
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 = z xy zmin ;
B2 = z xy zmax
Example:
Adaptive Median Filters
Domain Filtering
The basic idea
Lecture # 7
59
Lecture # 7
60
filter
Lecture # 7
61
filter
Lecture # 7
62
A Butterworth bandreject
filter of order 4, with the
appropriate radius and
width to enclose
completely the noise
impulses
Lecture # 7
63
Lecture # 7
64
1. Observation
2. Experimentation
3. Mathematical Modeling
Lecture # 7
65
H (u, v) e
k : a constant that depends on
the nature of the turbulence
Lecture # 7
66
11/5/2015
Digital Image Processing
Lecture # 7
67
Problems:
Division by zero
0/0 indetermination
If there is also noise, it will heavily influence the
calculations
Lecture # 7
68
filtering
Lecture # 7
69
Image deblurring
techniques
Lecture # 7
70
where H(u, v) is the degradation function and K is a constant used to approximate the
amount of noise.
Lecture # 7
72
FIGURE: Example of
image restoration
using Wiener filtering:
(a) input image
(blurry and noisy); (b)
result of inverse
filtering, applying a
10th-order
Butterworth low-pass
filter with cutoff
frequency of 50 to the
division; (c) results of
Wiener filter, with K =
103; (d) same as
(c), but with K = 0.1.
Lecture # 7
73
FIGURE: Example of
image restoration
using Wiener filtering:
(a) input (blurry)
image; (b) result of
inverse filtering,
applying a 10th-order
Butterworth low-pass
filter with cutoff
frequency of 50 to the
division; (c) results of
Wiener filter, with K =
105; (d) same as
(c), but with K = 0.1.
Lecture # 7
74