MRI Week3 - Signal - Processing - Theory
MRI Week3 - Signal - Processing - Theory
Week 3:
Signal Processing Theory
Sung-Hong Park
Bio and Brain Engineering, KAIST
• To better understand how MR images are generated
and processed, you need to be familiar with basic
concepts of Fourier transform and Sampling.
Fourier transform and MR Images
Fourier transform
into the frequency components that make it up, similarly to how a musical
chord is expressed as the amplitude (or loudness) of its constituent notes.
N
https://en.wikipedia.org/wiki/Fourier_transform
Fourier transform (1D)
𝐹 𝑢 = න 𝑓(𝑡)𝑒 −𝑗2𝜋𝑢𝑡 𝑑𝑡
−∞
𝑓 𝑡 = න 𝐹(𝑢)𝑒 𝑗2𝜋𝑢𝑡 𝑑𝑢
−∞
𝑓 𝑡 ↔ 𝐹(𝑢)
Time-domain Frequency-domain
Fourier transform (1D)
ex)
𝑓 𝑡 = cos(𝑡)
A
𝑡𝑖𝑚𝑒(𝑡) Frequency (𝜔
𝑓 𝑡 = cos(3𝑡)
Fourier
Transform
B
𝑡𝑖𝑚𝑒(𝑡)
Frequency (𝜔
𝑓 𝑡 = 2cos(3𝑡)
C
𝑡𝑖𝑚𝑒(𝑡) Frequency (𝜔
Time-domain Frequency-domain
Fourier transform (2D)
∞ ∞
∞ ∞
𝑓 𝑥, 𝑦 ↔ 𝐹(𝑢, 𝑣)
Image-domain Frequency-domain
denoted by x and y.
• 2D Fourier transform is the same as sequential application of 1D Fourier
N
S
Fourier transform (2D)
𝑦 𝑘𝑦 𝑘𝑦
𝑦
A B
2DFT 2DFT
𝑘𝑥 𝑘𝑥
1. 5
0. 5
𝑥
0
𝑥
-0. 5
-1
𝑘𝑦 𝑘𝑦
-1. 5
-2
-1. 5
-0. 5
-1. 5
-0. 5
0 50 100 150 200 250 300 350 400 450 500
0. 5
1. 5
0. 5
1. 5
𝑦 𝑦
-2
-1
-2
-1
0
2
0
0
C D
50
50
100
100
2DFT 2DFT
𝑘𝑥 𝑘𝑥
150
150
200
200
250
250
1. 5
0. 5
300
300
𝑥 𝑥
-0. 5
-1
-1. 5
-1. 5
-0. 5
𝑘𝑦
-2
0. 5
1. 5
𝑘𝑦
0 50 100 150 200 250 300 350 400 450 500
-2
-1
350
0
2
350
𝑦 𝑦
0
E F
400
50
400
450
100
450
2DFT 500
2DFT
150
500
𝑘𝑥 𝑘𝑥
200
250
-1. 5
1
300
-1
-0. 5
𝑥
0. 5
0. 5
𝑥
1
1. 5
2
350
400
S
Fourier Transform and MRI Images (1)
Frequency Domain
(k-space)
2D Fourier Transform
↔
Images
Fourier Transform and MRI Images (2)
Frequency Domain
(k-space)
2D Fourier Transform
↔
Images
Properties of Fourier Transform
1. Linearity
If 𝑓 𝑥, 𝑦 ֞ 𝐹(𝑢, 𝑣) 𝑔 𝑥, 𝑦 ֞ 𝐺(𝑢, 𝑣)
Linearity 𝑎1 𝑓 𝑥, 𝑦 + 𝑎2 𝑔 𝑥, 𝑦 ֞ 𝑎1 𝐹 𝑢, 𝑣 + 𝑎2 𝐺(𝑢, 𝑣)
2. Translation
If 𝑓 𝑥, 𝑦 ֞ 𝐹(𝑢, 𝑣)
3. Conjugation
If 𝑓 𝑥, 𝑦 ֞ 𝐹(𝑢, 𝑣)
* If 𝑓 𝑥, 𝑦 is real, then
4. Scaling
If 𝑓 𝑥, 𝑦 ֞ 𝐹(𝑢, 𝑣)
1 𝑢 𝑣
Scaling Property 𝑓 𝑎𝑥, 𝑏𝑦 ֞ 𝐹( , )
𝑎𝑏 𝑎 𝑏
5. Separable Product
If 𝑓1 𝑥 ֞ 𝐹1 (𝑢) 𝑓2 𝑦 ֞ 𝐹2 (𝑣)
FT 𝑓 𝑥, 𝑦 ֞ 𝐹1 (𝑢) ∙ 𝐹2 (𝑣)
Basic Signal Functions
• Complex signals can be simplified as linear combination of
certain basic functions.
1. Unit Impulse Function
𝑝∆𝜏 (𝑡) 𝛿(𝑡)
∆𝜏 → 0
1/∆𝜏
𝑡 𝑡
−∆𝜏/2 ∆𝜏/2
Infinite at t=0
N
S
N
Any pulse that has area 1 and is too short and too high to be displayed.
N
S
The definition of 𝛿 𝑡 doesn’t have to be based on a rectangular shape (e.g. Gaussian, sinc).
N
S
2. Unit step function
𝑢(𝑡)
0; 𝑡 < 0
1
1 𝑢 𝑡 = ; 𝑡=0
2
1; 𝑡 > 0
𝑡
𝑑𝑢(𝑡)
𝛿 𝑡 =
𝑑𝑡
3. Rect function
1
0 𝑖𝑓 𝑡 > 2
1 1
𝑟𝑒𝑐𝑡 𝑡 = ⨅ 𝑡 = 𝑖𝑓 𝑡 =
2 2
1
1 𝑖𝑓 𝑡 < 2
1 1
𝑟𝑒𝑐𝑡 𝑡 = 𝑢 𝑡 + −𝑢 𝑡−
2 2
1 1
=𝑢 𝑡+ ∙𝑢 −𝑡
2 2
𝑡 𝜏 𝜏
𝑟𝑒𝑐𝑡 =𝑢 𝑡+ − 𝑢 𝑡−
𝜏 2 2
𝜏 𝜏
=𝑢 𝑡+2 ∙𝑢 2−𝑡
4. Sinc function
sin(𝜋𝑥)
𝑠𝑖𝑛𝑐 𝑥 =
𝜋𝑥
1 𝑡
𝛿 𝑡 = lim 𝑠𝑖𝑛𝑐( )
∆𝜏→0 ∆𝜏 ∆𝜏
The delta function can be also defined using the Sinc function.
S
N
Basic Fourier Transform Pairs (1D)
Basic Fourier Transform Pairs (1D)
(t ) 1 (t )e j 2ut dt (t )e j 2u0 dt (t )dt 1
N
S
(t t0 ) e j 2ut 0
(t t0 )e j 2ut dt (t t0 )e j 2ut dt
0
N
S
e j 2ut0 (t t0 ) dt e j 2ut0
1/ 2
rect (t ) sinc(u ) rect (t )e j 2ut dt e j 2ut dt
N
S
1 / 2
1 sin(u )
(e ju e ju ) sinc (u )
j 2u u
Basic Fourier Transform Pairs (2D)
Sampling
Continuous vs Discrete signals
x(𝑡) Continuous
Amplitude
N
Signal
S
0
Sampling
(Digitization)
x[𝑛]
N
Amplitude
S
Discrete 0 A discrete signal (data sequence)
Signal
x[n] has values for only discrete
-1
0 5 10 15 20 25 Sample
points.
numbers
Point impulse function (Unit Impulse)
𝑝∆𝜏 (𝑡) 𝛿(𝑡)
∆𝜏 → 0
1/∆𝜏
𝑡 𝑡
−∆𝜏/2 ∆𝜏/2
Infinite at t=0
N
S
N
Any pulse that has area 1 and is too short and too high to be displayed.
N
S
The definition of 𝛿 𝑡 doesn’t have to be based on a rectangular shape (e.g. Gaussian, sinc).
N
S
Shifted Impulse and Sampling
𝑥 𝑡 𝛿(𝑡 − 𝜏)
𝛿(𝑡 − 𝜏) 𝑥(𝑡) = 𝑥 𝜏 𝛿(𝑡 − 𝜏)
𝑥 𝜏
𝑡 𝑡 (area)
𝑡
𝜏 𝜏 𝜏
Sampling?
Sampling function (1D)
1D Sampling function
N
S
𝑆 𝑥; 𝑥 = 𝛿(𝑥 − 𝑘𝑥) … …
𝑘=−∞
𝑓(𝑥)
𝑓 𝑥 ∙ 𝑆 (𝑥)
𝑥 𝑥
Sampling function (2D)
N
𝛿𝑠 (𝑥, 𝑦;
S
∆𝑥, ∆𝑦) matrix of points
N
𝑦 Typical sampling points of MRI : 64 x 64 to 512 x 512
S
𝑥
∆𝑦
∆𝑥 N
S
2D Sampling function
∞ ∞
Sampling (2D)
𝑦 𝑦
𝑓(𝑥, 𝑦) : 2D continuous signal
N
S
N
𝑓𝑆 𝑥, 𝑦; ∆𝑥, ∆𝑦 : 2D sampled signals
S
N
∆𝑥, ∆𝑦 : sampling periods
S
∆𝑦
N
∆𝑦
1/∆𝑥, 1/∆𝑦 : sampling frequencies
S
∆𝑥 𝑥 ∆𝑥 𝑥
Sampling (2D)
𝑓𝑠 𝑥, 𝑦 = 𝑓 𝑥, 𝑦 ∙ 𝛿𝑠 𝑥, 𝑦; ∆𝑥, ∆𝑦
∞ ∞
Given discrete signal 𝑓𝑑 [𝑚, 𝑛], we can calculate the continuous signal 𝑓𝑠 (𝑥, 𝑦).
N
S
Can we reconstruct the original signal 𝑓(𝑥, 𝑦) from its sampled version 𝑓𝑠 𝑥, 𝑦 ?
N
S
Nyquist sampling theorem
Sampling frequency
Fourier transform of sampling function (1D)
∞ ∞
1
𝑆 𝑥; 𝑥 = 𝛿(𝑥 − 𝑘𝑥) 𝑥
𝛿(𝑢 − 𝑘/𝑥)
𝑘=−∞ 𝑘=−∞
… … … …
𝑥 𝑢
𝑥 1/𝑥
Fourier transform of sampling function (2D)
Fourier transform of 2D Sampling function
N
S
∞ ∞
𝑆 𝑥, 𝑦; ∆𝑥, 𝑦 = 𝛿(𝑥 − 𝑚 ∙ ∆𝑥, 𝑦 − 𝑛 ∙ ∆𝑦)
𝑚=−∞ 𝑛=−∞ ∞ ∞
1
𝑥𝑦
𝛿(𝑢 − 𝑚/∆𝑥, 𝑣 − 𝑛/∆𝑦)
𝑚=−∞ 𝑛=−∞
𝑦 𝑣
𝑥 𝑢
1/∆𝑦
∆𝑦
∆𝑥 1/∆𝑥
Sampling Theorem (1D)
… …
𝑥 𝑥 𝑥
𝑥 𝑥
𝐹𝑆(𝑢)
𝐹(𝑢)
… …
𝑢
… … 𝑢
𝑢
1/𝑥 1/𝑥 1/𝑥
𝑚
The spectrum 𝐹𝑠 𝑢 is calculated by shifting the spectrum 𝐹 𝑢 to locations u =
N
S
∆𝑥
for all integer m, and adding all the shifted spectra (and dividing the result by ∆𝑥).
Nyquist Sampling Theorem (1D)
Band-limited signal 𝑓(𝑥) 1 1
When 2W =sampling freq. When 2W > =sampling freq.
𝑥 𝑥
𝑓(𝑥) 𝑓𝑆 𝑥 = 𝑓 𝑥 ∙ 𝑆 (𝑥) 𝑓𝑆 𝑥 = 𝑓 𝑥 ∙ 𝑆 (𝑥)
𝑥 𝑥 𝑥 𝑥
𝑥
𝐹𝑆(𝑢) Lowpass filter 𝐹𝑆(𝑢)
𝐹(𝑢)
Aliasing
… … … …
𝑢 𝑢 𝑢
−𝑊 𝑊
1/𝑥 1/𝑥 1/𝑥 1/𝑥
• The Nyquist theorem states that the sampling frequency (fS) must be at least twice as high as the
N
S
maximum bandwidth W of the original signal for the signal to be represented accurately.
Sampling Theorem (2D)
𝑦 𝑓 𝑥, 𝑦 𝑆 𝑥, 𝑦 𝑦 𝑓𝑆 𝑥, 𝑦 =𝑓 𝑥, 𝑦 𝑆 𝑥, 𝑦
𝑥
∆𝑦
∆𝑦
∆𝑥 𝑥
𝑥
∆𝑥
𝐹 𝑢, 𝑣 𝐹𝑠 𝑢, 𝑣
𝑣 𝑣
…
𝑣
𝑢 1/∆𝑦 𝑢
𝑢 … …
1/∆𝑦
…
1/∆𝑥
1/∆𝑥 𝑚 𝑛
The spectrum 𝐹𝑠 𝑢, 𝑣 is calculated by shifting the spectrum 𝐹 𝑢, 𝑣 to locations ( , ),
N
S
∆𝑥 ∆𝑦
for all integer m and n, and adding all shifted spectra (and dividing the result by ∆𝑥∆𝑦).
Nyquist Sampling Theorem (2D)
Band-limited signal 𝑓(𝑥, 𝑦) When 2W 1/𝑥 and 2Z 1/𝑦 When 2W > 1/𝑥 and 2Z > 1/𝑦
𝑦 𝑦 𝑦
∆𝑦
∆𝑦
𝑥
𝑥 ∆𝑥
𝑥
∆𝑥
𝐹 𝑢, 𝑣
𝐹𝑠 𝑢, 𝑣 𝐹𝑠 𝑢, 𝑣
𝑣 Lowpass filter 𝑣 Aliasing
…
…
𝑍
𝑢 𝑢 𝑢
−𝑊 𝑊 … … … …
−𝑍
…
…
• The Nyquist theorem states that the sampling frequency (fS) must be at least twice as high as the
N
S
maximum bandwidth W of the original signal for the signal to be represented accurately.
Aliasing
N
S
indistinguishable when sampled.
N
It also refers to the distortion or artifact that results when
S
the signal reconstructed from samples is different from the
original continuous signal.
No Aliasing Aliasing