Beruflich Dokumente
Kultur Dokumente
Lecture 1
1) General Informations about course
2) Signals
3) Systems
4) Examples
MG2011
General Information
Course Name:
TEL252E Signals and Systems
Course Staff:
Instructors: Prof.Dr.Muhittin Gkmen
Room #: EEB 4316
e-mail:gokmen@cs.itu.edu.tr
Do.Dr. Sabih Atadan
Room #:EEB 5109
e-mail: satadan@cs.itu.edu.tr
Teaching Assistant: Muzaffer Ege Alper
Room #: Research Lab3
MG2011
MG2011
General Information
Evaluation:
4 Homeworks %10
2 Quizes
%15
Mid-Term
%35
Final
%40
Detailed information can be found in the course
web-page:
http://www.cs.itu.edu.tr/~canberk/tel252e.htm
MG2011
Calendar
Week 1 Introduction
Week 2 Continuous-Time and Discrete-Time Signals and Systems. System Properties.
Singular functions.
Week 3 Convolution. Periodic Signals.
Week 4 Continuous- and Discrete-Time Fourier Series.
Week 5 Continuous-Time Fourier Transform.
Week 6 Continuous-Time Fourier Transform (cont.). Discrete-Time Fourier Transform.
Week 7 Discrete-Time Fourier Transform (cont.).
Week 8 First and Second Order Continuous- and Discrete-Time Systems. Ideal and Non-Ideal
Filters.
Week 9 Midterm Exam
Week 10 Sampling. Impulse-Train Sampling. Sampling Theorem and Aliasing. Zero and First
Order Hold. Analog-to-Digital and Digital-to-Analog Conversions.
Week 11 Laplace Transforms, Unilateral and Bilateral z-Transforms, Region of Convergence
(ROC). The relationships between Laplace Transform, (Continuous and Discrete) Fourier
Transforms and z-Transform.
Week 12 Transfer Functions using the Laplace- and z-Transforms, Pole-Zero Plot in s- and zplanes, Stability.
Week 13 Constant Coefficient Linear Differential and Difference Equations.
Week 14 Block Diagram Representation of Continuous- and Discrete-Time Systems. Direct
Form, Series and Cascade Filter Realizations. Feedback Structure in s-Domain.
MG2011
Fourier Integral
Fourier Series
Signals
Systems
DT Fourier Series
DT Fourier Transform
Sampling Theorem
Z Transform
MG2011
Chapter I
Signals and Systems
MG2011
SIGNALS
Signals are functions of independent variables
that carry information about the behavior or
nature of some phenomenon
For example:
Electrical signals --- voltages and currents
in a circuit
Acoustic signals --- audio or speech signals
(analog or digital)
Video signals --- intensity variations in an
image (e.g. a CAT scan)
Biological signals --- sequence of bases in a
gene
MG2011
What is Signal?
R
+
Vs I
Vc
-
RC circuit
MG2011
10
What is Signal?
Example 2 : Closing value of the stock exchange
index as a function of days
Index
M T
MG2011
11
MG2011
12
CT Signals
13
DT Signals
x[n], n integer, time varies discretely
14
15
MG2011
16
0
y(t) = 2
t
MG2011
,t < 5
,t 5
{y[n]} = {,1,0,1,0,1,0,1,0,1,0,}
17
x[n]
x(t )
x[2] ...
x[1]
x[2]
x[1] x[0]
... x[3]
... -3 -2 -1
0 1 2 3 4 ...
(Fig.1.7 Oppenheim)
The signal values may well also be complex numbers (e.g. Phasor of the
capacitor voltage in Example 1 when the input is sinusoidal and R is time
varying)
MG2011
18
t1 t t 2is
t1
t2
x(t ) dt
1
2
(
)
x
t
dtand referred to as
(t2 t1 ) t1
n1 n nis2
n2
x[n]
n1
n1 n n2is
n2
1
2
x[n]
(n2 n1 + 1) n1
MG2011
19
E = lim x(t ) dt =
2
T T
=
E
=
x[n]
lim
2
T n = N
x(t ) dt
x[ n]
n =
Signals with
In order to define the power over infinite intervals we need to take limit of
the average:
=
(
)
lim
P = lim
x
t
dt
T 2T
T 2T
have P = 0
T
N
1
E
2
[
]
=
lim
P = lim
x
n
N 2 N + 1
N 2 N + 1
n= N
MG2011
20
e.g:
0, t < 0
x(t ) = t
e , t 0
e.g:
e.g:
x(t ) = e t
21
Transformation of Independent
Variable
Time shift
Time scaling
MG2011
x(t ) x(t / 2)
22
Examples of Transformations
x[n]
Time shift
...
...
x[n-n0]
........
...
n0
23
Examples of Transformations
x(t)
Time shift
x(t-t0)
t
t0
24
Examples of Transformations
x(t)
Time reversal
t
x(-t)
25
Examples of Transformations
Time scaling
x(t)
t
x(2t)
compressed!
t
x(t/2)
stretched!
t
MG2011
26
Examples of Transformations
t
2
x(t+1)
1
x(-t+1)
1
-1
TEL252E Signals and Systems
t
27
Examples of Transformations
For the general case, i.e., x(t+),
1. first apply the shift (),
2. and then perform time scaling (or reversal) based on .
x(t+1)
t
-1
x((3/2)t+1)
1
t
-2/3
MG2011
2/3
28
Periodic Signals
2T
2T
MG2011
29
Periodic Signals
Period must be
integer!
a constant signal
MG2011
30
If
If
x(t)
odd
even
1
{
}
EV x(t ) = [x(t ) + x(t )]
2
OD { x(=
t )}
MG2011
1
[ x(t ) x(t )]
2
TEL252E Signals and Systems
31
x(t ) = Ce
Real Exponential
(C and a are real)
x(t)
a<0
x(t)
C
t
MG2011
32
x(t ) = e
x(t ) = e
jw0t
=e
jw0 ( t +T )
for periodicity
MG2011
jw0t
=e
jw0t
.e
jw0T
T=
2n
n Z +
=1
Thus, the signals ej0t and e-j0t have the same fundamental
period
TEL252E Signals and Systems
33
e j = cos + j sin
e j = cos j sin
= 0 t +
A j (0t + ) j (0t + )
A j j 0 t
+e
= e e + e j e j 0 t
A cos(0t + ) = e
2
2
A j (0t + ) j (0t + )
A j j 0 t
e
=
A sin(0t + ) =
e
e e e j e j 0 t
2j
2j
34
Acos(0t + ) = ARe(e j ( t + ) )
0
Asin(0t + ) = AIm(e j ( t + ) )
0
x (t )
T0 =
0
CT sinusoidal signal
A cos
A cos(0t + )
x(t ) = A cos(0t + )
MG2011
35
E period =
T +T0
Pperiod
j 0 t 2
T +T0
dt = 1 dt =(T + T0 ) T = T0
T
1
=
E period = 1
(T + T0 ) T
MG2011
36
MG2011
T0 =
0
37
MG2011
38
Then
x(t ) = Ce at = C e rt e j (0t + ) = C e rt cos(0t + ) + j C e rt sin(0t + )
(Real and imaginary parts) Growing and damping sinusoids for r>0 and r<0
x(t )
t, r > 0
MG2011
envelope
t, r < 0
x(t ) = Ce rt cos(0t + )
TEL252E Signals and Systems
39
>1
MG2011
0 < <1
1 < < 0
TEL252E Signals and Systems
< 1
40
DT Sinusoidal Signals
Consider e j0 n we then have similar to the CT case
A
A cos(0 n + ) = (e j e j0 n + e j e j0 n )
2
Infinite energy, finite average power with 1.
>1
<1
41
MG2011
42
MG2011
43
0 m
Or equivalently
= (* * *)
2 N
We have the conditions from (*) and (**) that m and N
must be integers.
0 m
So DT exp is periodic when
= is a rational number,
2 N
not periodic otherwise!!!
MG2011
44
0
as in (* * *)
2
(The same development is also valid for DT sinusoidal signals.)!!
MG2011
45
Ex : x[n] = cos(2n
12
0 1
2
) = cos(0 n) 0 =
no factors in common,
=
12
12
2 12
12
so by using (* * **) , N = 1 = 12
1
x[n] = cos(2n
Ex : x[n] = cos(4n
x[n] = cos(4n
12
0 2 (n = 1)
4
) = cos(0 n) 0 =
,
= =
12
12
2 12 ( N = 6)
12
then using (* * **) , N = 1 = 6
2
MG2011
46
OBSERVATION:
0 1
=
N =6
2 6
x(t) = cos ( 2t
12
) x[n] = cos ( 2n
12
47
x(t ) = cos 8t
)
31
and
x[n] = cos 8n
But, if
31
0
4
=
2
31
then N=31.
If
x(t ) = cos t
0
1 there is
=
2 12
Study Fig.1.27 page 27, Table 1.1 in Opp. Example 1.6 as well
MG2011
48
k [ n ] = e
MG2011
2
jk
N
for k = 0,1,2,...
49
k + N [ n] = e
2
j ( k + N )
n
N
=e
2
jk
n
N
j 2n
.e = k [n]
=1
0 [n] = 1, 1[n] = e
2
n
N
, 2 [ n] = e
4
n
N
, , N 1[n] = e
j ( N 1)
2
n
N
50
DT unit impulse:
0, n 0
[ n] =
1, n = 0
[n]
- - -
- - n
DT unit step:
0, n < 0
u[ n] =
1, n 0
u[n]
- - -
- - -
51
u[n] = [n - k]
0
Interval of summation
[n-k]
- - n
n<0
- - k
0
Interval of summation
[n-k]
- - -
- - -
n>0
k
x[n] [n n0 ] = x[n0 ] [n n0 ]
MG2011
Sampling property
52
0, t < 0
u (t ) =
1, t > 0
u(t)
t
(t)
CT impulse:
du (t )
(t ) =
dt
t
u (t ) = ( )d
MG2011
t
0
53
Continuous-Time Impulse
u (t ) = lim u (t )
u (t )
1
0
du (t )
(t ) =
dt
(t ) = lim (t )
0
(t )
(t )
1/
0
MG2011
u (tas
)
t
0
54
Continuous-Time Impulse
REMARKS:
Signal of a unit area
Derivative of unit step function
( ) ( )d
= (0)
t1
MG2011
55
CT and DT Systems
What is a system?
DT
System
y[n]
CT
y(t)
System
MG2011
56
CT and DT Systems
Examples
Vs I
+
V
c
dvc (t ) 1
1
+
vc (t ) =
vs (t )
dt
RC
RC
vc(t): output, vs(t): input
RC circuit
MG2011
57
Interconnection of Systems
y(t)
System 2
H2
System 1
H1
Parallel Connection:
x(t)
System 1
H1
y(t)
System 1
H2
MG2011
58
Interconnection of Systems
System 1
H1
y(t)
System 2
H2
Possible
MG2011
to have combinations
of connections..
TEL252E Signals and Systems
59
System Properties
Memory vs. Memoryless Systems
e.g. y(t)=2x(t)
Examples:
A resistor:
y(t) = R x(t)
A capacitor:
1
y (t ) = x( )d
C
MG2011
An accumulator:
y[n] =
x[k ]
k =
60
System Properties
Invertibility
Examples:
x(t)
System
y (t ) = 4 x(t )
y(t)
Inverse
System
w(t)=x(t)
x[k ]
y (t ) =
w(t ) =
y[n] =
k =
w(t ) =
1
y (t )
4
y (t ) = x 4 (t )
MG2011
x(t )dt
dy (t )
dt
Not invertible
TEL252E Signals and Systems
61
System Properties
Causality
y (t ) = 2 x(t + 4)
Non-causal
y[n] = x[n]
Non-causal (why?)
y (t ) = 2 x(t 4) cos(t + 1)
Causal (why?)
y[n] =
MG2011
x[n k ]
2M + 1
k = M
62
System Properties
Stability
Example:
t
y (t ) = x(t )dt
stable
y(t)
y(t)
x(t)
MG2011
Averaging system:
Interest system:
M
1
y[n] =
x[n k ]
2M + 1 k = M
stable
unstable (say x[n]=[n], y[n]
grows without bound
63
System Properties
Time-Invariance
Examples:
y[n] = nx[n]
y (t ) = x(2t )
y (t ) = sin x(t )
Not TIV
(explicit operation
on time)
(Ex. 1.16)
TIV
(Ex. 1.14)
64
System Properties
Linearity
It is additivity:
x(t) = x1(t) + x2(t) y(t) = y1(t) + y2(t)
And it is homogeneity (or scaling): x(t) = a x1(t) y(t) = a y1(t), for
a any complex constant.
Superposition:
x(t) = a x1(t) + b x2(t) y(t) = a y1(t) + b y2(t)
x[n] = a x1[n] + b x2[n] y[n] = a y1[n] + b y2[n]
MG2011
How
65
System Properties
Linearity
Examples:
y (t ) = x (t )
2
y[n] = 2 x[n] + 3
y[n] = Re{x[n]}
x1[n] = 2, x2 [n] = 3
for a = j
x1[n] + x2 [n] = 2 + 3 = 5
x1[n] + x2 [n] y1+ 2 [n] = 2.5 + 3 = 13
y1[n] + y2 [n] = 7 + 9 = 16 y1+ 2 [n]
nonlinear
nonlinear
y[n] = 2 x[n 1]
linear
MG2011
66
MG2011
67
Exercise: Given response y(t) of an LTI system to the input signal x(t) below,
find response of that system to the input signals x1(t) and x2(t) shown below.
y(t)
x(t)
2
1
t
t
-1
1
x1(t)
2
1
x2(t) 4
3
2
t
-1
-1/2 1/2 1
MG2011
68
Audio
Physics Of Acoustics
Sound can be thought of in one of two ways:
In the time domain
In the frequency domain
Transformation is accomplished by a Fourier transform
Fourier:
Any waveform can be represented by a sum of sine waves
MG2011
69
Audio
Physics Of Acoustics
cont
loudness =10log I I
I0 threshold (just perceived) (10-12 Joule/s . m), OdB
+10 dB (double loudness) equals 10-fold energy
0
MG2011
70
Audio
Physics Of Acoustics
cont
Frequency Pitch
Amplitude Loudness
MG2011
71
Audio
72
Audio
cont
73
3
Audio
MG2011
74
3
Audio
Sampling Rates
MG2011
75
Audio
76
Audio
Physics Of Acoustics
cont
Frequency Pitch
Amplitude Loudness
MG2011
77
3
Audio
Example
Phonem: Stairs
Diphon
Half syllable
Syllable
MG2011
78
3
Audio
MG2011
79
3
Audio
Speech Input
MG2011
80
3
Audio
Speech Recognition
Sound pattern
Word model
MG2011
81
3
Audio
Sound Enhancement
Declicking
Noise Reduction
Echo suppression
MG2011
82
Audio
Declicking
Removing impulse distortions, also called declicking of
recorded sound, is performed in two steps. In a first step
impulse distortions - clicks - are detected within a signal,
which are going to be removed from the signal in the second
step.
MG2011
83
cont
Audio
Declicking
MG2011
84
3
Audio
Noise Reduction
MG2011
85
Audio
Echo Suppression
sonogram
MG2011
86
MG2011
87
MG2011
88
MG2011
89
MG2011
90
MG2011
91
Noise reduction
Edge Enhancement
Zooming
MG2011
92
MG2011
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
93
Median Operation
61
621 59
1
651
57
601
63
1
59
551
49
53
62
59
65
561
60
63
56
58
1
571
55
58
57
55
45
C1,2=
MG2011
rank
59
9
8
7
6
5
4
3
2
1
65
63
62
60
59
58
57
56
55
94
9x9 Median
MG2011
95
Edge Detection
What is an edge
MG2011
96
Roberts Operator
[I ( x, y ) I ( x + 1, y + 1)]2 + [I ( x, y + 1) I ( x + 1, y )]2
or
I ( x, y ) I ( x + 1, y + 1) + I ( x, y + 1) I ( x + 1, y )
1 0
0 -1
MG2011
0 1
+ -1 0
97
Prewitt Operator
-1 -1 -1
P1= 0 0 0
1 1 1
P2
=
Edge Magnitude =
-1 0
-1 0
-1 0
1
1
1
P12 + P22
P1
Edge Direction = tan
P2
1
MG2011
98
MG2011
-1 0 1
-2 0 2
-1 0 1
0 1 2
-1 0 1
-2 -1 0
1 2 1
0 0 0
-1 -2 -1
2 1 0
1 0 -1
0 -1 -2
1
2
1
0 -1 -2
-1 0 -1
2 1 0
-1 -2 -1
0 0 0
1 2 1
-2 -1 0
-1 0 1
0 1 2
0 -1
0 -2
1 -1
99
0 1 2
-1 0 1
-2 -1 0
1 2 1
0 0 0
-1 -2 -1
MG2011
100
2D Laplacian Operator
f ( x, y ) f ( x, y )
f ( x, y ) =
+
2
2
x
y
2
1 -2 1
-2 4 -2
1 -2 1
-1 -1 -1
-1 8 -1
-1 -1 -1
101
0 -1 0
-1 4 -1
0 -1 0
Input
MG2011
Mask
Output
102
Chapter 4
Image Enhancement in the
Frequency Domain
MG2011
103
Chapter 4
Image Enhancement in the
Frequency Domain
MG2011
104
Chapter 3
Image Enhancement in the
Spatial Domain
MG2011
105
Chapter 3
Image Enhancement in the
Spatial Domain
MG2011
106