Digital 4
Digital 4
3 4
1
The STFT represents a sort of compromise between
Short Time Fourier Transform the time-
time- and frequency-
frequency-based views of a signal.
In STFT, the signal is divided into small enough
segments, where these segments (portions) of the *It provides some information about
signal can be assumed to be stationary. both:
Give the time-frequency representation (TFR) of the
signal when and at what frequencies a
STFT
(ω )
X
( t , f ) = ∫ [ x ( t ).ω * ( t − t ′ )]. e
− 2 j π ft
dt signal event occurs,
occurs, with limited
t precision, determined by the size
of the window which is localized in
time and frequency domains .
5 6
How to
How to compute
compute STFT?
STFT?
How to
How to compute
compute STFT?
STFT?
*Multiplying the window function g(t) which is
nonzero for only a short period of time, with signal
s(t) and compute the Fourier transform of the
product s(t)g*(t-t), as the window is slid along the
time axis, resulting in a two-dimensional
representation
* Because the window function g(t) has a
short time duration, the Fourier transform of
s(t)g*(t-t) reflects the signal's local frequency
properties. By moving g(t) and repeating the same
process, we could obtain a rough idea how the
signal's frequency contents evolve over time.
7 8
2
WINDOW WIDTH
trade-
trade-off of the selection of the time and frequency
Resolution issues and STFT drawback
resolution
Comparing short window and wide The window function we use is simply a Gaussian
window function in the form: w(t)=exp(-a*(t^2)/2);
Wide window
11 12
3
Example
Wavelet Transform & Its
applications
13
15 16
4
{ Once the mother wavelet is chosen the { Assume, the procedure will be started
computation starts with s=1 and the from scale s=1 and will continue for the
continuous wavelet transform is computed increasing values of s , i.e., the analysis
for all values of s , smaller and larger than will start from high frequencies and
``1''. However, depending on the signal, a
proceed towards low frequencies. This
complete transform is usually not
necessary. first value of s will correspond to the
most compressed wavelet. As the value
of s is increased, the wavelet will dilate.
17 18
19 20
5
COMPUTATION OF THE CWT
21 22
23 24
6
Example
{ Now, let's take a look at an example,
and see how the wavelet transform
CWT
really looks like.
{ Consider the non-stationary signal in
the next Figure. This is similar to the
example given for the STFT, except at f
27 28
7
One-
One-Stage Filtering: Approximations
and Details What Wavelet do
29 30
8
Downsampling
Wavelet Transform
The WT produces two sequences called cA and cD.
{ Discrete Wavelet Transform
33 34
9
The Discrete Wavelet Transform (1-D) Example of 1-D Signal
1
1250
0.8
1200
0.6
0.4
1150
0.2
1100
0
1050
DWT -0.2
-0.4
1000
-0.6
950 -0.8
-1
n n
One important property of DWT, The high-pass and low-pass Low pass 2 CA 0.8
0.6
filters are not independent of each other, and they are related by X 0.4
0.2
-0.8
-1
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
37 38
1700 1700
1200 1200
1650 1650
1050
DWT 1500
1050
DWT 1500
1450 1450
1000 1000
1400 1400
1300 1300
900 0 50 100 150 200 250 300 900 0 50 100 150 200 250 300
0 50 100 150 200 250 300 350 400 450 500 0 50 100 150 200 250 300 350 400 450 500
1 20
0.8 15
0.6
10
Approximation coefficient
0.4
0.2
Detail coefficient 5
0 0
-0.2
-5
-0.4
-10
-0.6
-15
-0.8
-1 -20
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 0 50 100 150 200 250 300
39 40
10
Multi-
Multi-step Decomposition and Reconstruction
Example of 1-D Signal
1750
1250
1700
1200
1650
1150 1600
1100 1550
1050
DWT 1500
1450
1000
1400
950 1350
1300
900 0 50 100 150 200 250 300
0 50 100 150 200 250 300 350 400 450 500
20
1250
15
1200
10
1150
5
1100
IDWT 0
1050
-5
1000 -10
950 -15
900 -20
0 50 100 150 200 250 300 350 400 450 500 0 50 100 150 200 250 300
41 42
11
2-D Wavelet Decomposition Wavelet Applications
Detecting Discontinuities
Medium
Slow sine
sine
Rapid
sine
47 48
12
Wavelet Applications Wavelet Applications
Denoising Signal Denoising Image Modi-
NeighShrin
Threshold k
Signal Inverse De-noised Wavelet
Wavelet detail wavelet
or wavelet Signal or De-noising
transform coefficients
Image transform image Box
IDWT
DWT
49
Original
Noisy Soft Threshold
Hard Threshold 50
1 1 1 1
h(n) = [ , ] g(n) =[ ,− ]
2 2 2 2
51 52
13
53 54
Color format
56
14
57
15