4 - Image Restoration - Reconstruction
4 - Image Restoration - Reconstruction
1
Image Restoration/Denoising
11/17/2023 2
A Model of Image Degradation/Restoration
Process
► Degradation
Degradation function H
Additive noise ( x, y )
11/17/2023 3
A Model of Image Degradation/Restoration
Process
11/17/2023 4
A Model of Image Degradation/Restoration
Process
G (u , v) H (u , v) F (u , v) N (u, v)
11/17/2023 5
Noise Sources
Image acquisition
e.g., light levels, sensor temperature, etc.
Transmission
e.g., lightning or other atmospheric disturbance in wireless
network
11/17/2023 6
Noise Models (1)
Why it is required to know about different Noise
Models?
► White noise
The Fourier spectrum of noise is constant
11/17/2023 7
Noise Models (2)
Gaussian noise
Electronic circuit noise, sensor noise due to poor illumination and/or
high temperature
Rayleigh noise
Usually presents in Range imaging techniques like radar range images.
11/17/2023 8
Range Imaging (1)
http://en.wikipedia.org/wiki/High_dynamic_range_imaging
http://www.webopedia.com/TERM/H/High_Dynamic_Range_Imaging.html
11/17/2023 9
Range Imaging (2)
http://en.wikipedia.org/wiki/High_dynamic_range_imaging
http://www.webopedia.com/TERM/H/High_Dynamic_Range_Imaging.html
11/17/2023 10
Range Imaging: Examples (1)
http://en.wikipedia.org/wiki/High_dynamic_range_imaging
Tower Bridge in
Sacramento,
California
11/17/2023 11
Sydney Harbour
Bridge HDRi
Range Imaging: Examples (2) produces greater
detail and fewer
http://en.wikipedia.org/wiki/High_dynamic_range_imaging shadows
11/17/2023 12
11/17/2023 Old Saint Paul’s Wellinton, New Zealand 13
Noise Models (3)
11/17/2023 14
Gaussian Noise (1)
11/17/2023 15
Gaussian Noise (2)
( ), ( )
95% of its values will be in the range
( 2 ), ( 2 )
11/17/2023 16
Rayleigh Noise
11/17/2023 17
Erlang (Gamma) Noise
11/17/2023 18
Exponential Noise
11/17/2023 19
Uniform Noise
11/17/2023 20
Impulse (Salt-and-Pepper) Noise
11/17/2023 23
Examples of Noise: Noisy Images(1)
11/17/2023 24
Examples of Noise: Noisy Images(2)
11/17/2023 25
Periodic Noise
11/17/2023 26
An Example of Periodic Noise
11/17/2023 27
Estimation of Noise Parameters (1)
The shape of the histogram identifies the closest PDF match
11/17/2023 28
Estimation of Noise Parameters (2)
11/17/2023 29
Restoration in the Presence of Noise Only
̶ Spatial Filtering
11/17/2023 30
Spatial Filtering: Mean Filters (1)
11/17/2023 31
Spatial Filtering: Mean Filters (2)
11/17/2023 32
Spatial Filtering: Mean Filters (3)
Harmonic mean filter
f ( x, y ) mn
1
( s ,t )S xy 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.
11/17/2023 33
Spatial Filtering: Mean Filters (4)
( s ,t )S xy
g ( s, t )Q
11/17/2023 35
Spatial Filtering: Example (2)
11/17/2023 36
Spatial Filtering: Example (3)
11/17/2023 37
Spatial Filtering: Order-Statistic Filters (1)
Median filter
f ( x, y ) median g ( s, t )
( s ,t )S xy
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
11/17/2023 38
Spatial Filtering: Order-Statistic Filters (2)
Midpoint filter
f ( x, y ) 1 max g ( s, t ) min g ( s, t )
2 ( s ,t )S xy ( s ,t )S xy
11/17/2023 39
Spatial Filtering: Order-Statistic Filters (3)
11/17/2023 40
11/17/2023 41
11/17/2023 42
11/17/2023 43
Spatial Filtering: Adaptive Filters (1)
Adaptive filters
11/17/2023 44
Adaptive Filters:
Adaptive, Local Noise Reduction Filters (3)
where, mL , the local mean of the pixels in S xy and L2 , the local variance of the pixels in S xy .
11/17/2023 45
11/17/2023 46
Linear, Position-Invariant Degradations
H is linear
H af1 ( x, y ) bf 2 ( x, y ) aH f1 ( x, y ) bH f 2 ( x, y )
f1 and f 2 are any two input images.
H f ( , ) ( x , y )d d
Superposition (or
Fredholm)
integral of the
H f ( , ) ( x , y ) d d first kind
f ( , ) H ( x , y ) d d Impulse
response
11/17/2023 48
Linear, Position-Invariant Degradations
11/17/2023 49
Linear, Position-Invariant Degradations
g ( x, y ) f ( , )h( x , y )d d ( x, y )
h ( x, y ) f ( x, y ) ( x, y )
G (u , v) H (u , v) F (u , v) N (u , v)
11/17/2023 50
Estimating the Degradation Function H
► Three principal ways to estimate the degradation function
1. Observation: By close observation and analysis,
especially areas of high contrast/high signal strength using
sharpening filter, etc. If a cleaner subimage Gs(u,v) is
obtained, estimate Hs(u,v) as follows using LPI property
3. Mathematical Modeling
Mathematical Modeling (1)
k ( u 2 v 2 )5/6
H (u , v ) e
k : a constant that depends on
the nature of the turbulence
11/17/2023 52
11/17/2023 53
Mathematical Modeling (2)
11/17/2023 54
Mathematical Modeling (3)
T j 2 ux0 ( t ) vy0 ( t )
11/17/2023 G(u, v) F (u, v) e dt 55
0
Mathematical Modeling (4)
T j 2 ux0 ( t ) vy0 ( t )
H (u , v) e dt
0
T
sin( ua )e j ua
ua
11/17/2023 56
11/17/2023 57
Inverse Filtering: How to restore if we have H
F (u , v) H (u, v) N (u , v)
F (u , v)
H (u , v)
N (u, v)
F (u , v)
H (u , v)
11/17/2023 58
Inverse Filtering
N (u , v)
F (u , v) F (u , v)
H (u , v)
11/17/2023 59
Minimum Mean Square Error (Wiener)
Filtering
N. Wiener (1942)
Objective
Find an estimate of the uncorrupted image such that the mean
square error between them is minimized
e 2 E ( f f )2
Addresses problem of Inverse Filtering. It incorporates both the degradation function H
and the statistical properties of the noise into the restoration process
11/17/2023 60
Minimum Mean Square Error (Wiener)
Filtering
1 | H (u , v ) | 2
F (u , v) G (u , v)
H (u , v) | H (u , v) | K
2
11/17/2023 61
Minimum Mean Square Error (Wiener)
Filtering
11/17/2023 62
Left:
degradated
image
Middle:
inverse
filtering
Right:
Wiener
filtering
11/17/2023 63
Some Measures (1)
| F (u , v ) | 2
SNR u 0 v 0
M 1 N 1
| N (u
u 0 v 0
, v ) | 2
11/17/2023 64
Some Measures (2)
Root-Mean-Sqaure-Error (RMSE)
M 1 N 1
f ( x, y ) 2
RMSE M 1 N 1
u 0 v 0
| f (
u 0 v 0
x , y ) f ( x, y ) |2
11/17/2023 65