Ch2 - University of Central Oklahoma

advertisement
Signals and Systems
Chapter 2
Biomedical Engineering
Dr. Mohamed Bingabr
University of Central Oklahoma
Outline
• Signals
• Systems
• The Fourier Transform
• Properties of the Fourier Transform
• Transfer Function
• Circular Symmetry and the Hankel Transform
Introduction
Signal Type
- Continuous Signal: x-ray attenuation
- Discrete Signal: times of arrival of photons in a
radioactive decay process in PET
- Mixed signal: CT scan signal g(l,θk)
System Type
- Continuous-continuous system
- Continuous-discrete system
Signals
2-D continuous signal is defined as f(x,y)
(x,y) : is a pixel location
f : is pixel intensity
function
image
Point Impulse
1-D point impulse (delta, Dirac, impulse function)
𝛿 π‘₯ = 0,
π‘₯ ≠ 0,
𝛿 π‘₯
∞
𝑓(π‘₯) 𝛿 π‘₯ 𝑑π‘₯ = 𝑓 0 .
−∞
2-D point impulse
𝛿 π‘₯, 𝑦 = 0,
∞
(π‘₯, 𝑦) ≠ (0, 0)
∞
𝑓(π‘₯, 𝑦) 𝛿 π‘₯, 𝑦 𝑑π‘₯𝑑𝑦 = 𝑓 0, 0 .
−∞ −∞
Point impulse is used in the characterization of image
resolution and sampling
π‘₯
Point Impulse Properties
1- Sifting property
∞
∞
𝑓(π‘₯, 𝑦) 𝛿 π‘₯ − πœ‰, 𝑦 − πœ‚ 𝑑π‘₯𝑑𝑦 = 𝑓 πœ‰, πœ‚ .
−∞ −∞
We can interpret the product of a function with a point impulse
as another point impulse whose volume is equal to the value of
the function at the location of the point impulse.
2- Scaling property
1
𝛿 π‘Žπ‘₯, 𝑏𝑦 =
𝛿(π‘₯, 𝑦)
π‘Žπ‘
2- Even function
𝛿 −π‘₯, −𝑦 = 𝛿(π‘₯, 𝑦)
Line Impulse
Line also used to assist image resolution
𝐿 𝑙, πœƒ =
π‘₯, 𝑦 |π‘₯π‘π‘œπ‘ πœƒ + π‘¦π‘ π‘–π‘›πœƒ = 𝑙
This is a line whose unite normal is oriented at an
angle θ relative to the x-axis and is at distance l from
the origin in the direction of the unit normal.
The line impulse 𝛿𝑙 π‘₯, 𝑦 associated with line 𝐿 𝑙, πœƒ
𝛿𝑙 π‘₯, 𝑦 = 𝛿𝑙 π‘₯π‘π‘œπ‘ πœƒ, +π‘¦π‘ π‘–π‘›πœƒ − 𝑙
Comb and Sampling Functions
Used in medical imaging production (sampling CT
image 1024 x 1024), manipulation, and storage.
∞
π‘π‘œπ‘šπ‘(π‘₯) =
𝛿(π‘₯ − 𝑛)
−∞
2-D comb function
∞
∞
π‘π‘œπ‘šπ‘(π‘₯, 𝑦) =
𝛿(π‘₯ − π‘š, 𝑦 − 𝑛)
π‘š=−∞ 𝑛=−∞
Sampling function
∞
∞
𝛿𝑠 π‘₯, 𝑦; βˆ†π‘₯, βˆ†π‘¦ =
𝛿(π‘₯ − π‘šβˆ†π‘₯, 𝑦 − π‘›βˆ†π‘¦)
π‘š=−∞ 𝑛=−∞
1-D Rect and Sinc Functions
Rect function is used in medical imaging for sectioning.
π‘Ÿπ‘’π‘π‘‘(π‘₯) =
1,
0,
1
for |π‘₯| <
2
1
for |π‘₯| >
2
Sinc function is used in medical imaging for
reconstruction.
π‘ π‘–π‘›πœ‹π‘₯
𝑠𝑖𝑛𝑐 π‘₯ =
πœ‹π‘₯
2-D Rect and Sinc Functions
π‘Ÿπ‘’π‘π‘‘(π‘₯, 𝑦) = π‘Ÿπ‘’π‘π‘‘(π‘₯)π‘Ÿπ‘’π‘π‘‘(𝑦)
π‘Ÿπ‘’π‘π‘‘(π‘₯, 𝑦) =
1,
0,
1
1
for |π‘₯| <
and |𝑦| <
2
2
1
1
for |π‘₯| > and 𝑦 >
2
2
𝑠𝑖𝑛𝑐 π‘₯, 𝑦 = 𝑠𝑖𝑛𝑐 π‘₯ 𝑠𝑖𝑛𝑐(𝑦)
1,
𝑠𝑖𝑛𝑐(π‘₯, 𝑦) = sin πœ‹π‘₯ sin(πœ‹π‘¦)
,
2
πœ‹ π‘₯𝑦
for π‘₯ = 𝑦 = 0
otherwise.
Exponential and Sinusoidal Signals
𝑒(π‘₯, 𝑦) = 𝑒 𝑗2πœ‹
𝑒0 π‘₯+𝑣0 𝑦
𝑒 π‘₯, 𝑦 = π‘π‘œπ‘  2πœ‹ 𝑒0 π‘₯ + 𝑣0 𝑦
π‘π‘œπ‘  2πœ‹ 𝑒0 π‘₯ + 𝑣0 𝑦
= 0.5𝑒 𝑗2πœ‹
x and y have distance
units.
u0 and v0 are the
fundamental
frequencies and their
units are the inverse
of the units of x and y.
+ 𝑗𝑠𝑖𝑛 2πœ‹ 𝑒0 π‘₯ + 𝑣0 𝑦
𝑒0 π‘₯+𝑣0 𝑦
+ 0.5𝑒 −𝑗2πœ‹
𝑒0 π‘₯+𝑣0 𝑦
Separable and Periodic Signals
•
A signal f(x, y) is separable if f(x, y)= f1(x) f2(y)
•
Separable signal model signal variations
independently in the x and y direction.
•
Decomposing a signal to its components f1(x) and
f2(y) might simplify signal processing.
Periodicity
A signal f(x, y) is periodic if f(x, y)= f(x+X, y) = f(x, y+Y)
X and Y are the signal periods in the x and y direction,
respectively.
Systems
A continuous system is defined as a transformer Ο¨ of an
input continuous signal f(x,y) to an output continuous
signal g(x,y).
g(x, y)= Ο¨ [f(x, y)]
Linear Systems
𝐾
𝐾
π‘€π‘˜ π‘“π‘˜ (π‘₯, 𝑦) =
Ο¨
π‘˜=1
π‘€π‘˜ Ο¨ π‘“π‘˜ (π‘₯, 𝑦)
π‘˜=1
Impulse Response
If we know the system response to an impulse
π›Ώπœ‰πœ‚ π‘₯, 𝑦 = 𝛿 π‘₯ − πœ‰, 𝑦 − πœ‚
then with linearity we can know the system response to
any input.
β„Ž π‘₯, 𝑦; πœ‰, πœ‚ = Ο¨ π›Ώπœ‰πœ‚ π‘₯, 𝑦
β„Ž π‘₯, 𝑦; πœ‰, πœ‚ is the system impulse response function
or known as point spread function (PSF).
Impulse Response
System output g() for any input f().
∞
𝑔 π‘₯, 𝑦 =
∞
𝑓 πœ‰, πœ‚ β„Ž π‘₯, 𝑦; πœ‰, πœ‚ π‘‘πœ‰π‘‘πœ‚
−∞ −∞
Shift Invariance System
A system is shift invariant if an arbitrary translation of
the input results in an identical translation in the output.
Then with linearity we can know the system response
to any input.
Let the input
𝑓π‘₯0 𝑦0 π‘₯, 𝑦 = 𝑓 π‘₯ − π‘₯0 , 𝑦 − 𝑦0
then the output g(π‘₯ − π‘₯0 , 𝑦 − 𝑦0 )= Ο¨ [𝑓π‘₯0 𝑦0 π‘₯, 𝑦 ]
System response to a shifted impulse
Ο¨ [π›Ώπœ‰πœ‚ π‘₯, 𝑦 ]= h(π‘₯ − πœ‰, 𝑦 − πœ‚)
Linear Shift-Invariance (LSI) System
Linear shift-invariant (LSI) System Response
∞
∞
𝑔 π‘₯, 𝑦 =
𝑓 πœ‰, πœ‚ β„Ž π‘₯ − πœ‰, 𝑦 − πœ‚ π‘‘πœ‰π‘‘πœ‚
−∞ −∞
Convolution Integral representation of system response
𝑔 π‘₯, 𝑦 = β„Ž π‘₯, 𝑦 ∗ 𝑓(π‘₯, 𝑦)
Example: Consider a continuous system with inputoutput equation g(x,y) = xyf(x,y).
Is the system linear and shift-invariant?
Connection of LSI Systems
Cascade
Parallel
𝑔 π‘₯, 𝑦 = β„Ž1 π‘₯, 𝑦 ∗ β„Ž2 π‘₯, 𝑦 ∗ 𝑓(π‘₯, 𝑦)
𝑔 π‘₯, 𝑦 = [β„Ž1 π‘₯, 𝑦 + β„Ž2 π‘₯, 𝑦 ] ∗ 𝑓(π‘₯, 𝑦)
Connection of LSI Systems
Example: Consider two LSI systems connected in
cascade, with Gaussian PSFs of the form:
1
−
β„Ž1 π‘₯, 𝑦 =
𝑒
2πœ‹πœŽ12
π‘₯ 2 +𝑦 2 /2𝜎12
1
−
β„Ž2 π‘₯, 𝑦 =
𝑒
2πœ‹πœŽ22
π‘₯ 2 +𝑦 2 /2𝜎22
where σ1 and σ2 are two positive constants.
What is the PSF of the system?
Separable Systems
A 2-D LSI system with PSF h(x, y) is a separable
system if there are two 1-D systems with PSFs h1(x)
and h2(x), such that h(x,y) = h1(x)h2(x)
1
−
β„Ž π‘₯, 𝑦 =
𝑒
2πœ‹πœŽ 2
π‘₯ 2 +𝑦 2 /2𝜎 2
This PSF is separable
1
2 /2𝜎 2
−π‘₯
β„Ž1 π‘₯ =
𝑒
2πœ‹πœŽ
1
2 /2𝜎 2
−𝑦
β„Ž2 π‘₯ =
𝑒
2πœ‹πœŽ
Separable Systems
In practice it is easier and faster to execute two
consecutive 1-D operations than a single 2-D operation.
∞
𝑀 π‘₯, 𝑦 =
𝑓 πœ‰, 𝑦 β„Ž1 π‘₯ − πœ‰ π‘‘πœ‰
−∞
g π‘₯, 𝑦 =
For every y
∞
𝑀 π‘₯, πœ‚ β„Ž2 𝑦 − πœ‚ π‘‘πœ‚
−∞
For every x
Stable Systems
A system is a bounded-input bounded-output (BIBO)
stable system if
For bounded input
|𝑓 π‘₯, 𝑦 | ≤ 𝐡 < ∞ for every (x, y)
The output is bounded
𝑔(π‘₯, 𝑦) = β„Ž π‘₯, 𝑦 ∗ 𝑓(π‘₯, 𝑦) ≤ 𝐡, < ∞
and
∞
∞
|β„Ž π‘₯, 𝑦 |𝑑π‘₯𝑑𝑦 < ∞
−∞ −∞
1-D Fourier Transform (time)
Continuous 1-D Fourier Transform
ο‚₯
ο€­ j 2ft
x
(
t
)
e
dt

X (2f ) ο€½
ο€­ο‚₯
Discrete 1-D Fourier Transform
N -1
X ( k ) ο€½ οƒ₯ x ( n )e
ο€­j
2k
n
N
n ο€½0
x(n)
X(k)
= [125
= [668
|X(k)| = [668
Phase = [0
145
-29.2 - j38
47.9
-127.5
148
7.7 - j12.96
15.1
-59.3
140
7.7 - j12.96
15.1
59.3
110]
-29.2 - j38]
47.9]
127.5]
1-D Fourier Transform
1-D Fourier transform
∞
𝐹 𝑒 = β„±1𝐷 𝑓 𝑒 =
𝑓 π‘₯ 𝑒 −𝑗2πœ‹π‘’π‘₯ 𝑑π‘₯
−∞
u is the spatial frequency
1-D inverse Fourier transform
−1
𝑓 π‘₯ = β„±1𝐷
𝐹 π‘₯ =
Example:
∞
𝐹 𝑒 𝑒 𝑗2πœ‹π‘’π‘₯ 𝑑𝑒
−∞
What is the Fourier
1,
transform of the π‘Ÿπ‘’π‘π‘‘(π‘₯) =
0,
1
for |π‘₯| <
2
1
for |π‘₯| >
2
Fourier Transform
The 2-D Fourier transform of f(x, y)
∞
𝐹 𝑒, 𝑣 = β„±2𝐷 𝑓 𝑒, 𝑣 =
∞
𝑓 π‘₯, 𝑦 𝑒 −𝑗2πœ‹(𝑒π‘₯+𝑣𝑦) 𝑑π‘₯𝑑𝑦
−∞ −∞
u and v are the spatial frequencies
The 2-D inverse Fourier transform of F(u, v)
∞
𝑓(π‘₯, 𝑦) =
∞
𝐹 𝑒, 𝑣 𝑒 𝑗2πœ‹(𝑒π‘₯+𝑣𝑦) 𝑑𝑒𝑑𝑣
−∞ −∞
Fourier Transform
Magnitude (magnitude spectrum) of FT
𝐹(𝑒, 𝑣) =
𝐹𝑅2 𝑒, 𝑣 + 𝐹𝐼2 𝑒, 𝑣
Angle (phase spectrum) of the FT
∠𝐹 𝑒, 𝑣 = π‘‘π‘Žπ‘›
−1
𝐹𝐼 (𝑒, 𝑣)
𝐹𝑅 (𝑒, 𝑣)
𝐹(𝑒, 𝑣) = 𝐹(𝑒, 𝑣) 𝑒 𝑗∠𝐹
𝑒,𝑣
Example: What is the Fourier transform of the point
impulse 𝛿(π‘₯, 𝑦)?
Fourier Transform Pairs
Examples of Fourier Transform
Example: What is the Fourier transform of
𝑓 π‘₯, 𝑦 = 𝑒 𝑗2πœ‹(𝑒0 π‘₯+𝑣0𝑦)
Answer:
β„±2𝐷 𝑓 𝑒, 𝑣 = 𝛿 𝑒 − 𝑒0 , 𝑣 − 𝑣0
If the spatial frequency u0 and v0 are zero then f(x,y) =1
and the spectrum F(u,v) will be 𝛿 𝑒, 𝑣 .
Slow signal variation in space produces a spectral
content that is primarily concentrated at low
frequencies.
Examples of Fourier Transform
Three images of decreasing spatial variation (from left to right) and the
associated magnitude spectra [depicted as log(1 + |F(u, υ)|)].
Examples of Fourier Transform
>> img1 = imread('\\PHYSICSSERVER\MBingabr\BiomedicalImaging\mri.tif');
>> imshow(img1)
>> size(img1)
ans = 256 256
>> FFT_img1 = fftshift(fft2(img1));
>> Abs_FFT_img1 = abs(FFT_img1)
>> surf(Abs_FFT_img1(110:140,110:140))
>> Log_Abs_FFT_img1=log10(1+Abs_FFT_img1);
>> surf(Log_Abs_FFT_img1(110:140,110:140))
Properties of the Fourier Transform
Properties are used in theory and application to
simplify calculation.
Linearity
β„±2𝐷 π‘Ž1 𝑓 + π‘Ž2 𝑔 𝑒, 𝑣 = π‘Ž1 𝐹 𝑒, 𝑣 + π‘Ž2 𝐺(𝑒, 𝑣)
Translation
If F(u,v) is the FT of a signal f(x, y) then the FT
of a translated signal
𝑓π‘₯0 𝑦0 π‘₯, 𝑦 = 𝑓 π‘₯ − π‘₯0 , 𝑦 − 𝑦0
is
β„±2𝐷 𝑓π‘₯0 𝑦0 𝑒, 𝑣 = 𝐹 𝑒, 𝑣 𝑒 −𝑗2πœ‹(𝑒π‘₯0 +𝑣𝑦0)
Properties of the Fourier Transform
Conjugation and Conjugate Symmetry
If F(u,v) is the FT of a signal f(x, y) then
𝐹(𝑒, 𝑣) = 𝐹 ∗ (−𝑒, −𝑣)
𝐹𝑅 (𝑒, 𝑣) = 𝐹𝑅 (−𝑒, −𝑣)
|𝐹 𝑒, 𝑣 | = |𝐹 −𝑒, −𝑣 |
∠𝐹 𝑒, 𝑣 = −∠𝐹 −𝑒, −𝑣
𝐹𝐼 (𝑒, 𝑣) = −𝐹𝐼 (−𝑒, −𝑣)
Properties of the Fourier Transform
Scaling
If F(u,v) is the FT of a signal f(x, y) and if
π‘“π‘Žπ‘ π‘₯, 𝑦 = 𝑓 π‘Žπ‘₯, 𝑏𝑦
1
𝑒 𝑣
β„±2𝐷 π‘“π‘Žπ‘ 𝑒, 𝑣 =
𝐹 ,
|π‘Žπ‘| π‘Ž 𝑏
Example
Detectors of many medical imaging systems can be
modeled as rect functions of different sizes and
locations. Compute the FT of the following
π‘₯ − π‘₯0 𝑦 − 𝑦0
𝑓 π‘₯, 𝑦 = π‘Ÿπ‘’π‘π‘‘
,
βˆ†π‘₯
βˆ†π‘¦
Properties of the Fourier Transform
Rotation
If F(u,v) is the FT of a signal f(x, y) and if
π‘“πœƒ π‘₯, 𝑦 = 𝑓 π‘₯π‘π‘œπ‘ πœƒ − π‘¦π‘ π‘–π‘›πœƒ, π‘₯π‘ π‘–π‘›πœƒ + π‘¦π‘π‘œπ‘ πœƒ
β„±2𝐷 π‘“πœƒ 𝑒, 𝑣 = 𝐹 𝑒 π‘π‘œπ‘ πœƒ − 𝑣 π‘ π‘–π‘›πœƒ, 𝑒 π‘ π‘–π‘›πœƒ + 𝑣 π‘π‘œπ‘ πœƒ
If f(x, y) is rotated by an angle πœƒ, then its FT is rotated by
the same angle.
Properties of the Fourier Transform
Convolution
The Fourier transform of the convolution
f(x, y) * g(x, y) is
β„±2𝐷 𝑓 ∗ 𝑔 𝑒, 𝑣 = 𝐹 𝑒 , 𝑣 𝐺 𝑒 , 𝑣
Convolution property simplify the difficult task of calculating
the convolution in the spatial domain to multiplication in the
frequency domain.
Example:
Find Fourier transform of the convolution f(x, y) * g(x, y)
𝑔 π‘₯, 𝑦 = 𝑠𝑖𝑛𝑐 𝑉π‘₯, π‘ˆπ‘¦
𝑓 π‘₯, 𝑦 = 𝑠𝑖𝑛𝑐 π‘ˆπ‘₯, 𝑉𝑦
0<Vο‚£U
Properties of the Fourier Transform
Product
The Fourier transform of the product f(x, y) g(x, y) is the
convolution of their Fourier transforms.
β„±2𝐷 𝑓𝑔 𝑒, 𝑣 = 𝐹 𝑒 , 𝑣 ∗ 𝐺 𝑒 , 𝑣
∞
=
∞
𝐺 πœ‰, πœ‚ 𝐹 𝑒 − πœ‰, 𝑣 − πœ‚ π‘‘πœ‰π‘‘πœ‚
−∞ −∞
Separable Product
If f(x, y)=f1(x)f2(y) then β„±2𝐷 𝑓 𝑒, 𝑣 = 𝐹1 (𝑒)𝐹2 (𝑣)
where
𝐹1 𝑒 = β„±1𝐷 𝑓1 𝑒
Separability of the Fourier Transform
The Fourier transform F(u,v) of a 2-D signal f(x, y) can be
calculated using two simpler 1-D Fourier transforms, as
follows:
∞
1) π‘Ÿ 𝑒, 𝑦 =
𝑓 π‘₯, 𝑦 𝑒 −𝑗2πœ‹π‘’π‘₯ 𝑑π‘₯
−∞
∞
2) 𝐹 𝑒, 𝑦 =
−∞
π‘Ÿ 𝑒, 𝑦 𝑒 −𝑗2πœ‹π‘’π‘¦ 𝑑𝑦
For every y.
For every x.
Transfer Function
The system’s transfer function (frequency response) H(u, v)
is the Fourier transform of the system’s PSF h(x,y).
∞
∞
𝐻 𝑒, 𝑣 =
β„Ž πœ‰, πœ‚ 𝑒 −𝑗2πœ‹(π‘’πœ‰+π‘£πœ‚) π‘‘πœ‰π‘‘πœ‚
−∞ −∞
The inverse Fourier transform of the transfer function H(u, v)
is the point spread function h(x,y).
∞
∞
β„Ž π‘₯, 𝑦 =
𝐻 𝑒, 𝑣 𝑒 −𝑗2πœ‹(𝑒π‘₯+𝑣𝑦) 𝑑𝑒𝑑𝑣
−∞ −∞
The output G(u, v) of a system in response to input F(u, v) is
the product of the input with the transfer function H(u, v) .
𝐺 𝑒, 𝑣 = 𝐻 𝑒 , 𝑣 𝐹 𝑒 , 𝑣
Transfer Function
Example: Consider an idealized system whose PSF is
h(x,y) = (x-x0, y-y0). What is the transfer function H(u, v) of
the system, and what is the system output g(x,y) to an input
signal f(x,y).
Low Pass Filter
𝐻(𝑒, 𝑣) =
𝐺(𝑒, 𝑣) =
1,
for 𝑒2 + 𝑣 2 ≤ 𝑐
0,
for 𝑒2 + 𝑣 2 > 𝑐
𝐹(𝑒, 𝑣) for 𝑒2 + 𝑣 2 ≤ 𝑐
0,
for 𝑒2 + 𝑣 2 > 𝑐
c1 > c2
Circular Symmetry
Often, the performance of a medical imaging system does
not depend on the orientation of the patient with respect to
the system. The independence arises from the circular
symmetry of the PSF.
A 2-D signal f(x, y) is circularly symmetric if
fθ(x, y) = f(x, y) for every θ.
Property of Circular Symmetry
• f(x, y) is even in both x and y
• F(u, v) is even in both u and v
• | F(u, v) | = F(u, v)
• ∠F(u, v) = 0
• f(x, y) = f(r) where π‘Ÿ =
π‘₯2 + 𝑦2
• F(u, v) = F(q) where π‘ž =
𝑒2 + 𝑣 2
f(r) and F(q) are one dimensional signals representing two
dimensional signals
Hankel Transform
The relationship between f(r) and F(q) is determined by
Hankel Transform.
∞
𝐹 π‘ž = 2πœ‹
0
𝑓 π‘Ÿ π½π‘œ 2πœ‹π‘žπ‘Ÿ π‘Ÿπ‘‘π‘Ÿ
𝐹 π‘ž = β„‹ 𝑓(π‘Ÿ)
where J0(r) is the zero-order Bessel function of the first kind.
1 πœ‹
𝐽0 π‘Ÿ =
cos π‘Ÿπ‘ π‘–π‘›πœ™ π‘‘πœ™
πœ‹ 0
The nth-order Bessel function
1 πœ‹
𝐽𝑛 π‘Ÿ =
cos π‘›πœ™ − π‘Ÿπ‘ π‘–π‘›πœ™ π‘‘πœ™
πœ‹ 0
for n = 0, 1, 2, …
Hankel Transform
The inverse Hankel transform.
∞
𝑓 π‘Ÿ = 2πœ‹
0
unit disk
𝐹 π‘ž π½π‘œ 2πœ‹π‘žπ‘Ÿ π‘žπ‘‘π‘ž
jink function
sinc and jink functions
Example
In some medical imaging systems, only spatial frequencies
smaller than q0 can be imaged. What is the function having
uniform spatial frequencies within the desk of radius q0 and
what is its inverse Fourier transform.
Download