Module 4 - Special Transforms
Module 4 - Special Transforms
The need for STFT arises because the Fourier transform (FT) is
limited to static signals, i.e., those that do not change their
frequency components (spectrum) over time. In other words, the
FT only provides information about the frequency spectrum
regardless of time.
Continuous time STFT
Where x[n] is the signal, and w [n] is the window. In this case, m is
discrete, and ω is continuous.
Inverse STFT
One of the issues with the STFT is that it has fixed resolution.
The width of the window function is related to the signal
representation, determining the trade-off between frequency and
time resolution. A wide window provides better frequency
resolution but poor time resolution, whereas a narrow window
offers good time resolution but poor frequency resolution.
N
X h π i
y [k] = w [k] x[n] cos [2n − 1][k − 1] , k = 1, 2, ..., N
2N
n=1
√1
(
, k=1
w [k] = qN
2
N, 2≤k ≤N
Useful features for compression
N
X π[2n − 1][k − 1]
x[n] = w [k]y [k] cos , n = 1, 2, ..., N
2N
k=1
√1
(
, k=1
w [k] = qN
2
N, 2≤k ≤N
Example DCT
Content
t2
ψ(t) = exp − cos(5t)
2
t
Examples of Wavelet functions III
c. Mexican hat
2
2 t
ψ(t) = √ exp − (1 − t 2 )
3π 1/4 2
t
Examples of Wavelet functions IV
d. Other families:
I Daubechies: db1, db2, db3,...,
I Coiflet: coif1, coif2, coif3,...,
I Symmlet: sym1, sym2, sym3,...,
I Shannon: shan1, shan2, shan3,...,
Inverse Wavelet
The simplest way to implement the DWT is through the filter bank
scheme:
2
2
2 ....
2
Where h[n] and g [n] are low-pass and high-pass filters, respectively,
and depend on the type of mother wavelet. The coefficients ci and
di are known as approximation and detail coefficients.
Discrete Wavelet transform (DWT) II
X
ci [k] = h[n − 2k]ci−1 [n]
n
X
di [k] = g [n − 2k]ci−1 [n]
n
Discrete Wavelet transform (DWT) III
2 +
+
Mathematically:
X X
ci−1 [n] = ci [k]h̄[n − 2k] + di [k]ḡ [n − 2k]
k k
g [n] = (−1)−n h̄[n]
ḡ [n] = (−1)−n h[n]
Example 1 DWT
Wavelet applications