Eng4Bf3 Medical Image Processing: Wavelet and Multiresolution Processing
Eng4Bf3 Medical Image Processing: Wavelet and Multiresolution Processing
2
Multiresolution
3
Image Pyramids
4
Image pyramids
• At each level we have an approximation image and a
residual image.
• The original image (which is at the base of pyramid)
and its P approximation form the approximation
pyramid.
• The residual outputs form the residual pyramid.
• Approximation and residual pyramids are computed
in an iterative fashion.
• A P+1 level pyramid is build by executing the
operations in the block diagram P times.
5
Image pyramids
6
Image pyramids
• Each iteration is composed of three sequential steps:
1. Compute a reduced resolution approximation of the
input image. This is done by filtering the input and
downsampling (subsampling) the filtered result by a
factor of 2.
– Filter: neighborhood averaging, Gaussian
filtering
– The quality of the generated approximation is a
function of the filter selected
7
Image pyramids
2. Upsample output of the previous step by a factor of
2 and filter the result. This creates a prediction
image with the same resolution as the input.
– By interpolating intensities between the pixels of
step 1, the interpolation filter determines how
accurately the prediction approximates the input
to step 1.
3. Compute the difference between the prediction of
step 2 and the input to step 1. This difference can be
later used to reconstruct progressively the original
image
8
9
Subband coding
• In subband coding, an image is decomposed into a set of
bandlimited components, called subbands.
• Since the bandwidth of the resulting subbands is smaller than
that of the original image, the subbands can be downsampled
without loss of information.
10
Perfect Reconstruction Filter
x(n) xˆ (n) i.e. X ( z ) Xˆ ( z )
11
Perfect Reconstruction Filter: Conditions
H 0 ( z )G0 ( z ) H1 ( z )G1 ( z ) 0
If
H 0 ( z )G0 ( z ) H1 ( z )G1 ( z ) 2
Then
X ( z ) Xˆ ( z )
12
Perfect Reconstruction Filter Families
13
2-D
14
Example of Filters
15
16
The Haar Transform
• Haar proposed the Haar Transform in 1910, more
than 70 years before the wavelet theory was born.
• Actually, Haar Transform employs the Haar wavelet
filters but is expressed in a matrix form.
• Haar wavelet is the oldest and simplest wavelet basis.
• Haar wavelet is the only one wavelet basis, which
holds the properties of orthogonal, (anti-)symmetric
and compactly supported.
17
The Haar Wavelet Filters
h0 2 2, 2 2
h1 2 2, 2 2
g0 2 2, 2 2 g0 2 2, 2 2
18
19
Multiresolution Expansions
• Series Expansions
A function can be expressed as
f ( x) kk ( x)
k
where
k k ( x), f ( x) k ( x) f ( x)dx
*
20
Multiresolution Expansions
• Series Expansions
Orthonormal basis
k ( x) k ( x)
0 jk
j ( x), k ( x)
1 jk
biorthogonal
j ( x), k ( x) 0 jk
0 jk
j ( x), k ( x)
1 jk
21
Multiresolution Expansions
• Scaling functions
Integer translations and dyadic scalings of a
scaling function ( x)
j ,k ( x) 2 j / 2 (2 j x k )
f ( x) k j0 ,k ( x)
k
22
0 0 x 1
( x)
1 otherwise
1
0, k ( x) 1,2 k ( x)
2
1
1,2 k 1 ( x)
2
f ( x) 0.51,0 ( x)
1,1 ( x) 0.251,4 ( x)
23
Multiresolution Expansions
• Scaling functions
Dilation equation for scaling function ( x)
( x) h ( n) 2 (2 x n)
n
24
Multiresolution Expansions
• Wavelet functions
( x) h (n) 2 (2 x n)
n
h (n) are called wavelet function coefficients
Translation and scaling of ( x)
j ,k ( x) 2 j / 2 (2 j x k )
25
26
Haar Wavelet
1 0 x 0.5
( x) 1 0.5 x 1
0 elsewhere
27
Wavelet Transform: 1-D
• Wavelet series expansion
f ( x) c j0 j0 ,k ( x) d j (k ) j ,k ( x)
k j j0 k
where
c j0 (k ) f ( x), j0 ,k ( x) f ( x) j0 ,k ( x) dx
28
1
y ( x) 0,0 ( x)
3
1
0,0 ( x)
4
2
1,0 ( x)
32
3 2
1,1 ( x)
32
......
29
Wavelet Transform: 1-D
• Discrete Wavelet Transform
1
f ( x)
M k
W ( j0 , k ) j0 ,k ( x)
1
M j j0 k
W ( j , k ) j ,k ( x)
where
1
Approximation
coefficients
W ( j0 , k )
M
f ( x)
x
j0 , k ( x)
1
Detail
coefficients
W ( j , k )
M
f ( x)
x
j ,k ( x)
30
Fast Wavelet Transform: Decomposition
W ( j , k ) h (n) W ( j 1, n) n 2 k ,k 0
W ( j , k ) h (n) W ( j 1, n) n 2 k ,k 0
31
Fast Wavelet Transform: Decomposition
32
Example: Haar Wavelet
1 2 n0
1/ 2 n 0,1
h (n) h (n) 1 2 n 1
0 otherwise 0 otherwise
33
Fast Wavelet Transform: Reconstruction
W ( j 1, k ) h (k ) W ( j , k ) h (k ) W ( j , k )
up
up
k 0
34
Fast Wavelet Transform: Reconstruction
35
Fast Wavelet Transform: Reconstruction
36
Wavelet Transform vs. Fourier Transform
37
Wavelet Transform: 2-D
Scaling function:
( x, y ) ( x) ( y )
Wavelet functions:
H ( x, y ) ( x) ( y ) Horizontal direction
38
2-D Wavelet Transform: Decomposition
39
2-D Wavelet Transform: Reconstruction
40
41
42
Fig. 7.24 (g)
43
Image Processing by Wavelet Transform
• Three Steps:
Decompose the image into wavelet domain
Alter the wavelet coefficients, according to
your applications such as denoising,
compression, edge enhancement, etc.
Reconstruct the image with the altered
wavelet coefficients.
44
45
Wavelet Transform based Denoising
• Three Steps:
Decompose the image into several scales.
For each wavelet coefficient y:
y y t
Hard thresholding: y
0 y t
sign( y )( y t ) y t
Soft thresholding: y
0 y t
Reconstruct the image with the altered
wavelet coefficients.
46
47
Assignment
48
End of the lecture
49