Course 18.327 and 1.130 Wavelets and Filter Banks
Course 18.327 and 1.130 Wavelets and Filter Banks
Finite-Length Signals
x[n]
y-2 y-1 y0 y1 yN-1
H()
y[n]
x-2 x-1 x0 x1 xN-1
unknown
1) zero-padding
x[n] n
x[n] n
x[N] = x[0]
wrap-around
N-output
circulant matrix = H
4
What is the eigenvector for the circulant matrix? [ 1 ei ei2 ei(N-1) ] T We need eiN = 1 = ei0 N = 2k For the 0th row,
N-1
2 k
2k N
= H[k]X[k]
3) Symmetric Extension 1) Whole point symmetry when filter is whole point symmetric. 2) Half point symmetry when filter is half point symmetric. e.g. Whole point symmetry: filter and signal h0 h1 h1x2 + h0x1 + h1x0 h1x1 + h0x0 + h1x1 h1 h0 h1 = h1x0 + h0x1 + h1x2 h1 h0 h1
x2 x1 x0 x1 x2
e.g. whole point symmetry filter, half-point symmetry - signal h1x2 + h1x1 + h1x0 + h1x0 + h0x1 + h1x0 h0x0 + h1x0 h0x0 + h1x1 h0x1 + h1x2 h1 h0 h1 h1 h0 h1 = h1 h0 h1
x2 x1 x0 x0 x1 x2
Downsampling a whole-point symmetric signal with even length N at the left boundary: x
-2 -1 0
x
1 2
at the right boundary: x x N-1 odd E.g. 9/7 filter: whole-point symmetric use the above extension for signal N N/2 exactly N/2
9
x -3 -2 -1 0 1
Linear-phase filters H() = A()e-i 1) half-point symmetric, 2) whole-point symmetric, = fraction = integer
The above extensions ensure the continuity of function values at boundaries, but not the continuity of derivatives at boundaries.
11
4) Polynomial Extrapolation (not useful in image processing) Useful for PDE with boundary conditions.
x0 x1 x2 x3
0 1
a b c d
x0 x1 x2 x3
Then, x1 = [1 -1 1 -1]
a b = [1 -1 1 -1] A1 c d
x0 x1 x2 x3
ik
13
0 0 0 1
1 p-1 0 0 1 2 1 1
0 1 p-1 =
c0 c1 cp-1
Using the computed is, we can extrapolate, 0 0 1 p-1 e.g. c1 = [1 1 1 ] p-1 DCT idea of symmetric extension cf. DFT X[k] = x[n]e-i
n
2k n N
complex-valued
14
1
2 k
N-1
2N-1
2N
x[n]ei 2N n + x[2N-1-n]e-i 2N n
n=N N-1 N-1
2 k
2N-1
2 k
m=0
2 k
x[m]e-i 2N
2 k
(2N-1-m)
X(k)
2 x[n]cos ck N
N-1
n=0
k (n+) N
1
ck =