Image Restoration: Noise Removal Using Frequency Domain Filters
Image Restoration: Noise Removal Using Frequency Domain Filters
The specific models used for h(r,c) and n(r,c) are application specific,
and in practice are normally estimated.
However, there are cases where these models may not be required.
The noise model can be matched to a typical noise models discussed
before by taking the histogram of noise in the degraded image.
Most types of degradation function that can be analyzed are some form of
blurring (a point being spread out).
– This type of degradation function is also referred to as point spread
function (PSF).
How do we find PSF?
– We need to have access to the system and make sure that the condition
under which the image was acquired have not been changed.
Overview
PSF actually measures the amount and direction of blurring that can
occur to one pixel. The blur can be:
– Linear in one direction (horizontal, vertical, diagonal).
– Circularly symmetric (blur in all direction).
This blurring is modeled using a PSF mask.
The PSF mask is then used to model h(r,c).
l ,,,,,
Overview tic a
,v e rt
ta l
r iz on
y h o
n o nl
0 0 0 0 0ectio 0 0 1 0 0
di r
o ne
0 0 ar0in 0 0 0 0 1 0 0
l ine
n b e
ur ca1 1 1 1 1 0 0 4 0 0
Bl
0 0 0 0 0 0 0 1 0 0
0 0 0 0 0 0 0 1 0 0
Horizontal PSF mask Vertical PSF mask with
with uniform blur center-weighting
Overview
1 0 0 0 0 0 1 1 1 0
0 2 0 0 0 1 2 4 2 1
0 0 4 0 0 1 4 8 4 1
0 0 0 2 0 1 2 4 2 1
0 0 0 0 1 0 1 1 1 0
Diagonal PSF mask Circular PSF mask with
with Gaussian distribution Gaussian distribution
Overview
After the PSF mask has been selected, the mask must be padded
with zeros up to the size of the image.
Then the zero-padded mask must be shifted, with wrap-around, so
that the center of the original mask is at the point (0,0) in the image
(at the upper left corner).
Then Fourier transform is performed.
The frequency domain filters incorporate information regarding the
noise and the PSF into their model.
– D(u,v) = H(u,v)I(u,v) + N(u,v)
To obtain the restored image, the general form is as follows:
-1 -
– Î(r,c) = F [Î(u,v)] = F 1[Rtype(u,v)D(u,v)]
– Rtype(u,v) is the frequency domain filter.
Inverse Filter
The inverse filter uses the typical model with the assumption of no noise
(N(u,v) = 0).
– D(u,v) = H(u,v)I(u,v) + 0
The fourier transform of the original image can be found as follows:
D(u , v) 1
I (u , v) D(u , v)
H (u , v) H (u , v)
Inverse Filter
To get the original image, we take the inverse Fourier transform of
I(u,v):
I ( r , c ) F 1 I ( u , v ) F 1
H (u ,v )
D (u ,v )
F 1 D ( u , v )
H (u ,v )
1
50 50 25
H (u , v) 20 20 20
20 35 22
1 1 1
50 50 25
1 1 1 1
H (u , v ) 20 20 20
1 1 1
20 35 22
Inverse Filter
Setting the cut-off frequency too low may provide poor result
(blurred).
Setting it too high may result in the restored image being
overshadowed by noise.
In practice, the cut-off frequency must be experimentally determined
and highly application specific.
Inverse Filter
minimized.
The Wiener filter is defined as follows:
H * (u, v)
R W (u, v)
S (u, v) H*(u,v) = complex conjugate of H(u,v)
H(u, v) 2 n Sn(u,v) = |N(u,v)|2 = power spectrum of the noise
S I (u, v)
SI (u,v) = |I(u,v)|2= power spectrum of the original image
Wiener Filter
H * (u ,v ) H * (u ,v ) 1
H (u ,v ) 2 H (u ,v ) H * (u ,v ) H (u ,v )
When the noise spectrum gets larger, the denominators of Wiener filter
increases, thus decreasing the value of RW(u,v) .
This leads to a desired behavior:
– In portions of the spectrum where there is no noise, we have an
inverse filter.
– In portions of the spectrum heavily corrupted by noise, the filter
attenuates the signal.
Wiener Filter
H (u , v ) 2 H (u , v ) 2 S n (u , v )
S I (u ,v )
The terms are as previously defined, with γ and α being positive real
constants.
If α = ½ and γ = 1, then this filter is called a power spectrum equalization
filter (homomorphic filter).
– It is an average between the inverse filter and the Wiener filter (hence
the term geometric mean).
If α = 0, this filter is called a parametric Wiener filter.
Geometric Mean Filters
Original Image
Notch Filter
Restored Image
The end