




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





2
Finite-Length Signals
x[n] H(ωωωω) y[n]
y
y
y
0
y
1
y
N-
h
0
h
1
h
0
h
h
2
h
1
h
0
h
h
1
h
0
h
x
x
x
0
x
1
x
N-
unknown
length N
(finite length)
unknown
3
artificial edge resulting
from zero-padding
n
x[n]
filtered by [1, 1]
n
n
y[n]
y[n]
filtered by [1, -1]
4
n
x[n]
x[N] = x[0]
y
0
y
1
y
N-
h
1
h
0
h
h
h
2
h
1
h
1
h
0
h
h
3
h
2
h
h
h
2
h
1
h
0
x
N-
x
N-
x
0
x
1
x
2
x
N-
x
0
wrap-around
N-output circulant matrix = H
7
Symmetric Extension
Whole point symmetry – when filter is whole
point symmetric.
symmetric.
e.g. Whole point symmetry: filter and signal
h
1
x
2
0
x
1
1
x
0
h
0
h
1
x
2
h
1
x
1
0
x
0
1
x
1
h
1
h
0
h
1
x
1
h
1
x
0
0
x
1
1
x
2
h
1
h
0
h
1
x
0
x
1
x
2
8
e.g. whole point symmetry – filter,
half-point symmetry - signal
h
1
x
2
0
x
1
1
x
0
h
1
h
0
h
1
x
2
h
1
x
1
0
x
0
1
x
0
h
1
h
0
h
1
x
1
h
1
x
0
0
x
0
1
x
1
h
1
h
0
h
1
x
0
h
1
x
0
0
x
1
1
x
2
x
0
x
1
x
2
Half point symmetry Whole point symmetry
9
Downsampling a whole-point symmetric signal with
even length N
at the left boundary:
0 1
-1 2
x x
still whole-point symmetric after ↓↓↓↓2.
x
x
x
at the right boundary:
half-point symmetric after ↓↓↓↓2.
odd
E.g. 9/7 filter: whole-point symmetric
use the above extension for signal N
exactly
10
Downsample a half-point symmetric signal
x
x
x
nothing guaranteed
Linear-phase filters
H(ωωωω) = A(ωωωω)e
-iωαωαωαωα
half-point symmetric, αααα = fraction
whole-point symmetric, αααα = integer
Symmetric extension of finite-length signal
X(ωωωω) = B(ωωωω)e
-iωβωβωβωβ
13
Then, a x
0
x
= [1 -1 1 -1] b = [1 -1 1 -1] A
x
1
c x
2
d x
3
f(x) = ¦¦¦¦ c
k
φφφφ(x – k)
Assume f(x) has polynomial behavior near boundaries
¦ α αα
α
i
x
i
= f(x) = ¦ ¦¦
¦ c
k
φ φφ
φ(x – k)
{φφφφ (•••• - k)} orthonormal
¦¦¦¦ αααα
i
³³³³ φφφφ(x – k)x
i
dx = c
k
k
p-
i=
p-
i=
μ μμ
μ
i
k
k
14
μ μμ
μ
0
μ μμ
μ
1
μ μμ
μ
p-
α αα
α
0
c
0
μμμμ
0
μμμμ
1
μμμμ
2
αααα
1
c
1
α αα
α
p-
c
p-
0 0 0
1 1
1
Using the computed α αα
α
i
’s, we can extrapolate,
e.g. c
= [μ μμ
μ
0
μ μμ
μ
1
μ μμ
μ
p-
–1 –
αα αα
0
αα αα
p-
DCT idea of symmetric extension
cf. DFT X[k] = ¦¦¦¦ x[n]e
-i n
2 ππππk
N
n
complex-valued
Want real-valued results.
15
DFT of this extended signal:
¦¦¦¦ x[n]e
–i n
-i n
2 ππππk
2N
2 ππππk
2N
N-
n=
2N-
n=N
¦ x[m]e
-i (2N-1-m)
2 ππππk
2N
N-
m=
¦ x[n] {e
-i n
-i (2N-1-n)
X(k) c
k
¦¦¦¦ x[n]cos (n+½) DCT – II used in JPEG
c
k
2 ππππk
2N
2 ππππk
2N
π ππ
πk
N
2
N
N-
n=
N-
n=
1
2
k = 0
1 k = 1, 2, …, N - 1