Docsity

Methods for Biomedical Imaging - Appunti, Appunti di Magnetic Resonance Imaging, MRI

Toggle sidebar
bg1
Methods for Biomedical Imaging
module [1] from Methods for Biomedical Imaging and Computer Aided Surgery [C.I.]
a.a. 2022-23 (sem. II)
prof. Baselli
Anna Sparapani
The notes are elaborated from the notes provided by the professor and additional sources: https://www.mriquestions.com/ was of
great help, Wikipedia for the mathematical discussions and different CT information websites.
Table of Contents
01 - Recall of Multidimensional Fourier Transform 2
CT Scans 3
02 - Recall of 2D reconstructions from projections 3
03 - Generalized Reconstruction from Projections 7
04 - Numerical Methods: ART & OSEM 9
05 - Analytical Reconstruction Methods in 3D 12
MRI 14
06 - MRI Scanners 15
07 - NMR Physics 17
08 - Bloch Equations for NMR 21
09 - Bloch Equations for RF Excitation 21
10 - Signal Detection and Complex Demodulation 23
11 - MRI Signal Characteristics 25
12 - MRI Contrast 29
13 - MRI Signal Localization 31
14 - MRI Resolution, SNR and Artifacts 36
15 - Magnetic Resonance Spectroscopy and Chemical Shift Imaging 37
16 - Magnetic Resonance Angiography 39
17 - Functional MRI 41
18 - Diffusion Weighted MRI and DTI Tractography 42
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34

Anteprima parziale del testo

Scarica Methods for Biomedical Imaging - Appunti e più Appunti in PDF di Magnetic Resonance Imaging, MRI solo su Docsity!

Methods for Biomedical Imaging

module [1] from Methods for Biomedical Imaging and Computer Aided Surgery [C.I.]

a.a. 2022-23 (sem. II)

prof. Baselli

Anna Sparapani

The notes are elaborated from the notes provided by the professor and additional sources: https://www.mriquestions.com/ was of

great help, Wikipedia for the mathematical discussions and different CT information websites.

Table of Contents

01 - Recall of Multidimensional Fourier Transform 2

CT Scans 3

02 - Recall of 2D reconstructions from projections 3

03 - Generalized Reconstruction from Projections 7

04 - Numerical Methods: ART & OSEM 9

05 - Analytical Reconstruction Methods in 3D 12

MRI 14

06 - MRI Scanners 15

07 - NMR Physics 17

08 - Bloch Equations for NMR 21

09 - Bloch Equations for RF Excitation 21

10 - Signal Detection and Complex Demodulation 23

11 - MRI Signal Characteristics 25

12 - MRI Contrast 29

13 - MRI Signal Localization 31

14 - MRI Resolution, SNR and Artifacts 36

15 - Magnetic Resonance Spectroscopy and Chemical Shift Imaging 37

16 - Magnetic Resonance Angiography 39

17 - Functional MRI 41

18 - Diffusion Weighted MRI and DTI Tractography 42

01 - RECALL OF MULTIDIMENSIONAL FOURIER TRANSFORM

We can generalize and sum up the Fourier transform as

1D FFT algorithm: ND-FT computation benefits of the separability of orthogonal directions : it is possible to compute the 1D integral along

each axis to obtain the multidimensional FT

Properties of all (1D = ND) Fourier transforms

a. Linearity

b. Complex conjugate symmetry

c. Change of scale: dilation in space causes compression in frequencies and viceversa

2D FOURIER TRANSFORM

2D-FT is useful as it allows to filter an image, to detect

objects and edges, to reconstruct images from projections

and to process raw magnetic resonance images by the

convolution with linear filters

Local phase of a 2D frequency

Let r = position vector, the local phase is defined as (

x

y)

φ

φ = ω ·⃗ r = ω x

·x + ω y

·y

This allows to generalize to the

Local phase of a ND frequency

φ = ω ·⃗ r

t = x cos( ϑ ) + y sin( ϑ )

Inverse Fourier Transform

Allows to reconstruct the function form its Fourier transform

: weighted sum by of harmonics

f (x) F ( ω )

→ f (x) F ( ω ) e

j ω x = e

j φ = cos φ + j sin φ = cos( ω t ) + j sin( ω t )

ω =

ω x

ω y)

ω cos ϑ

ω sin ϑ

Direction

the direction along which the phase has the fastest increase

  • if we moved in a different direction we would “perceive” a slower 1D frequency
  • moving to , we find a constant = a constant value of the harmonic function and the “perceived”

1D frequency is null

t

ϑ =

ω

t

⊥ t ⃗ ϑ

F ( ω x , ω y ) = ℱ 2 D { f (x , y)}( ω )

=

∫ ∫

+∞

−∞

f (x , y)e

−j( ω x x+ ω y y) d x d y

Defined by two variables

  1. Frequency (like in 1D FT)
  2. Direction with angle

ω ⃗

t ϑ

1D FOURIER TRANSFORM

Decomposes a continuous function into the sum ( expansion ) of sinusoidal functions ( harmonics )

is a complex scalar value which represents the amplitude and initial phase of that specific harmonic

at frequency

allows the reconstruction of an image from projections through the CST

f (x)

F ( ω )

ω

in this course

given with

because harmonics

are orthogonal to each other

they form an orthonormal basis of

functions (minimum amount of information

to represent in a different dominion)

ω i

, ω j

i ≠ j

→ e

−j ω 1

x ·e

−j ω 2

x = 0

f (x)

radian frequency

preferred to unit frequency

Euler’s formulation

phase

intended as local / instantaneous phase

ω :

[

rad

cm

]

f 0

= ω / 2 π

e

j ω x

= cos( ω x) + j sin( ω x)

φ = ω x

f (x) =

2 π

+∞

−∞

F ( ω )e

j ω x d ω

2D Frequency

  • note that are the 1D frequencies perceived moving along the and axes

Orthogonality among harmonics

Parallelograms methods : space will be divided into parallelograms where the two harmonics are

alternatively in-phase or in phase opposition. Hence, the local product will change sign and the integral

will be zero

also in the ND case the harmonics are an orthogonal base

ω x

, ω y

x y

harmonics in same direction : like 1D case

harmonics in different directions : parallelograms method

F ( ω ) = ℱ 1 D

{ f (x)}( ω )

+∞

−∞

f (x)e

−j ω x

d x

Fourier Transform Inverse Fourier Transform

1D

2D

ND

F ( ω ) =

+∞

−∞

f (x)e

−j ω x

d x

f ( r ) =

( 2 π )

N ∫

+∞

−∞

F (

ω )e

j ω ⃗ r

d

ω

f (x , y) =

4 π

+∞

−∞

F ( ω x

, ω y

)e

j( ω x

x+ ω y

y)

d ω y

d ω y

f (x) =

2 π

+∞

−∞

F ( ω )e

j ω x

d ω

F ( ω x

, ω y

+∞

−∞

f (x , y)e

−j( ω x

x+ ω y

y)

d x d y

F ( ω ) =

+∞

−∞

f ( r )e

j ω · r

d r

Sinogram

t 1

t n

ϑ 1

… … …

ϑ n

⋮ ⋮

⋮ ⋮

ϑ 3

… … …

Sampled data are stored in a matrix with sampled angles rows and sampled

displacements on columns, the file is called sonogram

  • often represented as an image looks like the overlap of sinusoidal patterns
  • For symmetry reasons, the projections could be limited to 180°, but to limit

noise and physical limitation it’s suggested to go all 360°

ϑ k

t k

RT 2D animation, click here if not moving

dim.

F

2 D

x

ω y = 0

+∞

−∞

f (x, y)e

−j( ω x x+ 0 y)

d x d y =

+∞

−∞

e

−j ω x

x

+∞

−∞

f (x, y)d x d y =

+∞

−∞

p

ϑ = 0

(x)e

−j ω x

x

d x =

= F

1 D

{p

ϑ = 0

(x)}

In theory the can be obtained by inverting the Radon transform, but this is complex and almost never used. Instead the CST:

  1. Permits to fill the 2D-FT
  2. 2D-IFT allows the reconstruction, and

allows the algorithm of

f (x , y)

f (x , y)

CENTRAL SLICE THEOREM (CST) IN 2D

The 1D-FT of the projections of the radon transform, onto an axis with angle ,

yields the 2D-FT values on a line through the origin of the 2D FT space

having the same inclination angle.

thus it represents a central slice through 2D-FT

1D-FT of projections (Radon Transforms) 2D-FT of a slice of the original object

t ϑ

ω t

( ω x

, ω y

≡

  1. By the CST the 2D-FT is substituted by the 1D-

FT of projections

f (x , y) = ℱ

− 1

2 D

2 D

{ f (x , y)}} =

( 2 π )

2 ∫ ∫

+∞

−∞

2 D

{ f (x , y)}( ω x

, ω y

) e

j( ω x

x+ ω y

y)

d ω x

d ω y

  1. Image is the 2D-IFT of the 2D FT of

the image itself

f (x , y)

FILTERED BACK PROPAGATION (FBP)

FBP mathematical formulation

  1. Sharpening step: needed because the back projection operation is not the exact inverse of the forward projection operation.

Filter each row (by angle) of the sinogram with a ramp filter

  • each frequency is amplified proportionally (high pass filter)
  • is the IFT of
  1. Back project and sum the filtered image over the object space from each projection angle

assign the same value to each point of the projection ray

n.b. back projection without ramp filtering creates a blurred image, so filtering can be seen a de-blurring operation in the object space

dim. of RT reconstruction through the FBP

R ( ϑ , t ) R ( ω t

) = | ω t

R

conv

( ϑ , t ) = {p ϑ

(t ) ⊛ h ramp

(t )} ∀ ϑ

h ramp

(t ) H ( ω t

ϑ

⇒ R

conv

( ϑ , t ) L ( ϑ , t ) = {x cos ϑ − y sin ϑ − t = 0 }

ℱ and 1 D

{R{ f (x , y)}( ϑ , t )} = ℱ 2 D

{ f (x , y)} t = x cos ϑ + y sin ϑ

f (x , y) =

( 2 π )

2 ∫

2 π

0

+∞

0

1 D

{R{ f (x , y)}( ϑ , t )}e

j ω t

t

ω t

d ω t

d t

  1. Switch to polar coordinates

with Jacobian determinant (rivedi perch

utile)

ω t (

ϑ

ω t )

:=

ω x = ω t cos ϑ

ω y = ω t sin ϑ

d x d y = ω t

d ω t

d ϑ

↓

f (x , y) =

( 2 π )

2 ∫

2 π

0

+∞

0

2 D

{ f (x , y)}( ϑ , t )

CST on this term

e

j( ω t

cos ϑ + ω t

sin ϑ ) ω t

d ω t

d ϑ

  1. Notice substitutions

Notes on the FBP

  • in the backprojection the ray appear as function arguments (after filtering), which repeated the finite value sampled over the filtered

projection onto the entire ray over the 2D plane. The obtained pattern is called blade and must not be confused with used as

integration kernel in the projection operation. This distinction becomes inconsistent when moving to the digital implementation with thick

rays and pixels of finite area

  • The factor stems from the IFT definition, but it’s not important in practice wince it’s weighted by calibration factors

t

δ (·)

4 π

ℱ 1 D {

[

p ϑ

(t ) ⊛ h ramp

(t ) ] }

= ℱ 1 D

{p ϑ

(t )}·ℱ 1 D

{h ramp

(t )}

↓

f (x , y) =

4 π

2 π

0

{p ϑ

(t ) ⊛ h ramp

(t )}(t , ϑ )d ϑ

| ω and t

| = ℱ 1 D

{h ramp

(t )} R{ f (x , y))}( ϑ , t = p ϑ

(t ))

f (x , y) =

4 π

2 π

0

2 π

+∞

−∞

1 D

{p ϑ

(t )}ℱ 1 D

{h ramp

(t )}e

j ω t

t

d ω t

d ϑ

  1. Integration range

⇒ introducing a ramp filter

t = x cos ϑ + y sin ϑ

f (x , y) =

4 π

2 π

0

p ϑ

(t ) ⊛ h ramp

(t ) ) (

x cos ϑ + y sin ϑ

ϑ

d ϑ

  1. Back projection of the filtered data: convert

back the displacement variable to orthogonal

coordinates. For each this generates a blade

on the projection ray with value

ϑ

p ϑ

⊛ h ramp

(t )

  1. Recognize that the inner integral in is a 1D-

IFT and is a product of two 1D-FTs can be

substituted by the convolution

ω t

[0, + ∞] of ω , which requires t

→ [−∞, + ∞] ω t

→ | ω t

| ≡ H ( ω t

)

f (x , y) =

( 2 π )

2 ∫

2 π

0

+∞

−∞

1 D

{R{ f (x , y)}( ϑ , t )

p ϑ

(t)

}e

j ω t

t | ω t

⏟

1 D

{h ramp

(t )}

d ω t

d ϑ

FBP limitations

discretization in point (3) and (4) imposes numerical algorithms even if the FBP was analytically derived

to overcome these limitations and implement the numerical algorithms we move to

03 - GENERALIZED RECONSTRUCTION FROM PROJECTIONS

Mathematical formulation of the FBP problem stays:

Possible generalizations: the 3D and non idealities we can consider

imply many generalizations, even in the scope of a linear hypothesis

(we are not considering non linear generalizations in this discussion)

FBP does not iterate and it backprojects only

once, but the use fo projection coefficients is

similar to interactive numerical methods and

implies

  • immediate computation, or
  • retrieval from huge lut

digital back propagation to be implemented

with after ramp filtering

⇒ f j

j

a ij

p i

j

a ij

p i

= p i

Streak artifacts If the angular sampling is below the theoretical minimum discussed artifacts

In CT they emerge around highly contrasted objects (metal implants, clips, catheters etc.)

2D-FT of the sampled image

IFT

The angular sampling should not exceed

samples over 360° are needed

F

kl

M N

M− 1

m= 0

N− 1

n= 0

f mn

e

−j 2 π (

m

M

k +

n

N

l )

f mn

M− 1

m= 0

N− 1

n= 0

F

kl

e

j 2 π (

m

M

k +

n

N

l )

Δ ϑ 2 Δ /FOV = 2 /N rad

⇒ π N

the CST projects the sampling pattern into

the Fourier Space

DIGITAL IMAGES AND ANGULAR SAMPLING

After reconstruction the image results samples in 2D ( f Shannon’s th.) s

≥ 2 f max

  1. introduced for 2D images only
  2. considers the ideal case of infinite projections rays + uniform sensitivity
  3. only approximation for a practical implementation is sampling both t and ϑ
  4. further approximation needed: discretization of image in pixels = Δx Δy

↪ usually :

2D plane Δx = Δy = Δt

3rd dimension Δz slice thickness

p i

j

a ij

f j

, with

f ij

img intensity at pixel row ( j )

⇒ values we are looking for

a ij

pixel weight

⇒ approximated in many ways

similarly to num. mehods

Non ideality issue Solution type

Analytical

(similar to FBP)

Analytical

Numerical

Non uniform sensitivity in the detector Numerical

Generalize the reconstructed image

representation by basis function before

pixels / voxels visualization

Numerical

Numerical

2 D → 3 D

Account for the noise probability distribution

→ Poisson distribution of rare events

Complete projections →partial sets

Parallel beam →fan-beam or cone-beam

Introducing

(i) discretization of the number of projections

(ii) non uniform sensitivity in the detector

because we have to consider that

  1. The sensitivity it’s not 1-inside and 0-outside

the tubes (Dirac function), so we need a more

complex function to describe it

  1. In SPECT is high and narrow at the

collimator but spreads out with increasing

distance

  1. In PET the LORs have good narrowness at

scanner center but skewed when moving out

why?

h i

(x , y, z )

h i

(x , y, z )

Discrete Continuous (D-C) Linear Space Variant (LSV) Model

model reconstruction generalization

Consider

(i) a finite number of projections in our notation) of a 3D image

(ii) a sensitivity function that describes the space variance in two ways

  1. not homogeneous within a 3D thick ray ( tube )
  2. not constant along (tube considered)

a projection is generalized from a line integral to a volume integral with a volume

integration kernel

it's a

g ¯

LSV

i

( = p i

f (x , y, z )

h i

(x , y, z )

i

h i

(x , y, z )

g ¯

LSV

i

( = p i

Ω

⏟

vol.

img. density

f (x , y, z ) ·

sens. func.

h (x , y, z ) d x d y d z

In old scanners

non isotropic voxels

Δz ≫ Δt

  1. Numerical methods are required (system has huge dimensions) for system solution

c. D-C MODEL IMAGE RECONSTRUCTION

leads to a direct solution without without introducing further discretization approximations

  1. The problem solution is in the q reconstruction
  • in realistic models it’s computationally doable
  • In 3D geometries and SPECT in particular, it requires excessive computation

g ¯

LSV

i

Ω

J

j= 1

f j

b j

(x , y, z ) h i

(x , y, z )d x d y d z

Given the DC model, the reconstruction can proceed in three ways

a. Obtain a Discrete-Discrete (D-D) model from the D-C model by representing

unknown by a linear combination of a finite basis function

b. Obtain a Continuous-Continuous (C-C) analytical model from the D-C model

by interpreting discrete data as samples of a continuous function and

interpolate

limited to the simple ideal problem, presented with FDK algorithm (see

later)

c. Proceed further with the D-C model

f (x , y, z )

g ¯

LSV

i

but

g ¯

LSV

i

( = p i

Ω

f (x , y, z )·h (x , y, z )d x d y d z

  1. Objective is to minimize the LS of differences between the simulated

projections and the measured projections.

Since the number of measurement is limited, it is not possible to determine a

continuous function to minimize without adding more constraints

the minimum norm on the reconstructed function is added

The Moore-Penrose generalized solution is the unique function of minimum norm

among those that minimize the norm of the residual vector

P ( f )

g ¯

LSV

⇒ ∥ f MP

(x , y, z )∥

  1. Substitute f in the g¯ equation with the Moon-Penrose solution

LSV

i

f MP

P := g

LSV

= P ( f (x , y, z ))

With

g ¯

LSV

i

Ω

I

j= 1

q j

h j

(x , y, z ) h i

(x , y, z )d x dy d z

g ¯

LSV = Hq

H

i, j

Ω

h i

(x , y, z )h j

(x , y, z )d x dy d z

  1. By inverting the sum and integration order the D-D model is obtained

The contribution of the j -th basis function to the i -th measurement is given by the

coefficients , which represent the weighted cross-sensitivity and basis functions

This can be expressed in matrix for considering

  • projections column vector with elements
  • basis functions weight vector with elements
  • system matrix with elements

a ij

g ˜

LSV g˜

LSV

i

∈ IR

J

f

f j

∈ IR

I

A a ij

∈ IR

I x J

  1. Let’s introduce linear operator, representing the generalized LSV projection

operation. Operates on to produce the data-space vector

P

f (x , y, z ) g

LSV

q = H

− 1

g¯

LSV

Let

The D-D model is traced back to a standard

algebraic model

a ij

Ω

h i

(x , y, z )b j

(x , y, z )d x d y d z

g ˜

LSV

i

j= 1

a ij

f j

(x , y, z )

˜ g

LSV = A

f

a. D-D MODEL IMAGE RECONSTRUCTION

  1. Consider the image density and let be the finite series

expansion, with length, on a base of functions, so that their linear combination

leads to the approximation of

f (x , y, z )

f (x , y, z )

J

f (x , y, z )

Elements for D-D image reconstruction

  1. Set of basis functions , which can represent the image with a finite number of weights
  2. Model of the physics of the measurement process LSV with
  3. Model of the measurement uncertainty e.g. Poisson distribution
  4. Objective function used as data fitting criterion and image property criterion e.g. objective function of regularized log-likelihood

where controls the trade-off between spatial resolution and noise in the reconstructed image

  1. Numerical algorithm to produce the values of the coefficients on the basis of (1) and measurement data see ch. 4

localized e.g. voxels

global e.g. Fourier series in MRI

→ h i

(x , y, z )

f, g) = L (

f, g) − β R (

f ) β

f (x , y, z ) =

J

j= 1

f j

b j

(x , y, z )

  1. Let’s consider the LSV model, where each g element is the dot product of

LSV

i

f (x , y, z )·h (x , y, z )

min

sim.proj.

g ˜

LSV

i ⏞

P f −

meas. proj.

⏞

g ¯

LSV

f MP

(x , y, z ) =

I

i= 1

q i

h i

(x , y, z )

  1. Substitute the approximation function in the D-C LSV expression

f (x , y, z ) g¯

LSV

i

ART coefficients update rule

f

(n+ 1 )

= f

(n)

−

p

(n)

i

− p i

k

w

2

ik

w i

Mathematical computation

  1. Let’s have with
  2. Rewrite the hyperplane as

where the constant term is the displacement from the origin

  1. So the segment can be seen as
  2. Similarly the segment can be computed as the projection of onto the direction by

the scalar product with the relevant unit vector

f

(n+ 1 )

= f

(n)

−

HG

HG =

OF −

O A

f

(n)

· w i

= p i

f

(n)

·

w i

| w i

p i

| w i

|

O A

normalizing by | w i

| the

orthogonal unit vector is highlighted

O A

O A =

p i

| w i

w i

| w i

OF f

(n)

w i

OF =

f

(n)

w i

| w i

w i

| w i

Expanded to all unknown j pixels as

f

(n+ 1 )

j

= f

(n)

j

p

(n)

i

− p i

k

w

2

ik

w ij

from the solution we gather that:

  1. correction is additive and to an additive error made by the current reconstruction

when simulating the i -th projection;

  1. correction to a voxel is proportional to its weight

e.g., with thick-rays, if a voxel was centrally crossed by the ray, it would be heavily corrected; if it was

not touched (the many in the sparse system matrix, it would not be corrected;

  1. The normalization by the sum of weights is squared since both projections and itself are scaled by

∝ e

(n)

i

p

(n)

i

− p i )

w ij

w ij

| w ij

Geometrical demonstration

Let’s consider with , hence the space ok unknowns is a 2D space and constraints

planes are 1D (lines)

a. starting from the initial guess (point H), the first constrain is fully satisfied by

orthogonally projecting H onto the relevant line, thus obtaining the first update (point G)

b. the second constrain is addressed by a similar projection, getting This terminates the

first iteration

first iteration finished

p = W f J = 2

p 1

= w 11

f 1

  • w 12

f 2

= w 1, j

f

p 2

= w 12

f 1

  • w 22

f 2

= w 2, j

f

f

( 0 )

f

( 1 )

f

( 2 )

  1. The update can be rewritten in terms of segments as

Considering th projection simulation at update

f

(n+ 1 ) = f

(n) −

f

(n) w i

| w i

p i

| w i

w i

| w i

| w i

2

k

w

2

ij

and p

(n)

i

= f

(n) w i

k

w ik

f

(n)

k

i− n

Notes on ART update rule convergence

In the example above, but usually leading to data redundancy and lack of a single point for convergence. However, this is

necessary to overcome noise that may cause lack of convergence. In this case the convergence is towards uncertainty area closed by the

hyperplanes. The uncertainty area extension is proportional to the noise level.

  1. Orthogonality highly influences of convergence
  2. Data redundancy is common and necessary to overcome noise

otherwise the iterations start bouncing back and forth

  1. there are several ways to regularize convergence (at least in the final iterations) and take the highest advantage from redundancy

a. Add a relaxation factor to the update rule, will cause will cause convergence toward the middle of the uncertainty

area, implicitly reaching a least squares optimum

b. Ordered subsets improve convergence ordered subsets ART algorithms

i. Simultaneous Iterative Reconstruction Technique (SIRT): update after an iteration on all data (batch)

ii. Simultaneous ART (SART) : applied simultaneously for all the rays in one projection and so it is a good compromise between the

ART and the SIR

iii. Ordered Subsets ART (OSART) and its variants: a common trick is to start with no relaxation factor (i.e. = 1) and next decrease it

gradually from 1 to 0.9 or similar while convergence is approached

J = I I ≫ J

speed

precision

I ≫ J

η ∈ [0, → 1 ]

METHOD 2 - ORDERED SUBSET EXPECTATION MAXIMIZATION (OSEM)

Implements the Maximum Likelihood (ML) algorithm addressing Poissonian noise typical of rare events in ECT (PET and SPECT)

Looks for the most probable unknown vector given the

collected data

Given the measures, what is the most likely local

emission?

to estimate we rely on the

λ

max P ( λ | y )

to reconstruct from the available the available data is modeled as a Poissonian distribution, which

well describes the occurrence of rare events, typical of ECT

Let’s model the dataset of measured values as a set of observed Poisson variables, with expected value

detector count is discrete discrete distribution

at this point we have to introduce a way to estimate from

⇒ λ y

Y

i

y i

∈ IN →

Y

i

∈ IR

λ y

Bayesian estimate criterion

posterior probability

likelihood of data given the emission

prior probability of

P ( λ | y )

P

Y

( y | λ )

P ( λ ) λ

Step 2: Maximum Likelihood Expectation Maximization (MLEM) - maximize

Solves the problem by the known data into unknown components

compute the terms of expected likelihood , given the actual tentative

solution at update (n) and then maximize it

how?

by deriving the update equation with the E and M steps, which will then be applied

in iterations

L ( y , λ )

y i

j

x ij

E [x ij

] =

X

ij

= a ij

λ j

with

X

ij

contribution

of voxel λ j

to the measure y i

⇓ allows us to ⇓

L (y, λ )

λ

(n)

The problem is that of finding the average emission

values of each pixel, which compose the original image,

from the measured values one way to do this is to

increase the number of samples , but it’s clinically

unsafe

hence

λ

y i

the ln L ( y , λ )function becomes:

λ | λ

(n)

= E

[

ln(L ( x , λ )) | y , λ

(n)

]

ij

−a ij

λ j

+ N

ij

ln(a ij

λ j

+ R

Step 1: Maximum Likelihood Estimation Criterion - find the function to later maximize

Let’s assume constant prior probability , so that

i. does not affect the maximization

ii. the obtained data also has a flat probability distribution

the ML estimates t.c. it maximizes the data likelihood function

P ( λ )

P ( λ )

P

Y

( y )

⇒ λ L ( y , λ )

λ : max L ( y , λ ) = max P Y

( y | λ )

ln L ( y | λ ) = ln [

P (y 1

| λ )·P (y 2

| λ )·… ]

= ln

[

I

i= 1

e

− ¯ Y i

y i

!

Y

y i

i

]

to be maximized → EM step ↓

M step

can be easily maximized, since

i. The derivative of a sum to be nulled is the sum of the derivatives

ii. R term does not change with n iterations and can be omitted

iii. Linear term and log term

λ | λ

(n)

−a ij

λ j

f ′

k ln(a ij

λ j

f ′

λ

− 1

j

max P ( λ | y ) =

P

Y

( y | λ )P ( λ )

P

Y

( y )

The log-likelihood is usually preferred, since

a. Arguments of are coincident, since is monotonic

b. Equations are generally easier

the independent probability of decay events determines the independence of variables, which allows the data likelihood function to be

rewritten as

[

ln L ( y , λ ) ]

max log(·)

→ y i

The straightforward analytic maximization of

is non tractable, and we need to resort to numerical

methods

ln L ( y , λ )

E step

Substitute unavailable variables with available functions of

  • in the emission values are considered as variables to be corrected

in the next step

x ij

N

ij

( λ ) λ

N

ij

= E

[

X

ij

| y i

, λ

(n)

]

a ij

λ

(n)

j

y i

k

a ik

λ

(n)

k

λ | λ

(n)

λ

λ

(n+ 1 ) = arg max

λ

Φ( λ | λ

(n) )

how?

∂ λ j

Φ( λ

(n) )

)

∂ λ j

Φ( λ

(n)

) )

i

a ij

i

N

ij (

λ

(n+ 1 )

j

− 1

λ

(n+ 1 )

j

i

N

ij

i

a ij

= λ

(n)

j

i

a ij

y i

∑

k

a ik

λ

(n)

k

i

a ij

The data likelihood function can be rewritten as

ln L (

x | λ )

= ln

i, j

e

− ¯ X ij ¯ X

x ij

ij

x ij

i, j

(−a ij

λ j

  • x ij

ln(a ij

λ j

) − ln(x ij

Let’s consider

i. vector of measured projections

we have:

ii. vector of local emission values, with average emission in each voxel

we want to find:

y

y = [ y 1

… y i

]

T

λ λ j

λ = [

λ 1

… λ j

]

T

y

i

Y

i

e

−

¯ Y i

y

i

Y

y i

i

E [y

i

] =

Y

i

J

j= 1

a

ij

i

The ML estimation criterion is applied to maximize

rather than the actual solution because

a guess of the solution to be compared

with via forward problem

P

Y

( y | λ ) P ( λ | y )

λ

(n)

provides

y

(n)

y

MATHEMATICAL FRAMEWORK AND THEORETICAL BACKGROUND

All basic concepts relevant to the reconstruction from projection hold in the generalization from

but the dimension of integration kernels must be augmented from to to keep a coherent mathematical theory.

Step 2 of generalization to 3D: deal with the third dimension (elevation)

First correction

[angles]

Second correction

[distance]

Notes of FDK

algorithm

the same back-projections are corrected by the quadratic broadening of X-rays is applied

f FDK

(x , y, z ) =

2 π

0

b max

b min

R

2

U (x , y, z , β )

p¯

C

β , a (x , y, β ), b (x , y, z , β ) )

db d β

FELDKAMP, DAVID AND KRESS (FDK) ALGORITHM

Extension strategy from that works parallel for gantry and linear detectors.

Based on the idea of

  1. Adding a new coordinate to the previously planar angular coordinates

: elevation coordinate

  1. Apply to fans tided by the same corrections as in the Fan-Beam algorithm

The relationships among the coordinates are trivial

FDK algorithm steps

2 D

to

3 D

( β , γ )

κ

κ

γ = R tan γ b = R

2

  • a

2

tan κ

γ = arctan

a

R

κ = arctan

b

R

2

  • a

2

  • FDK approximation is valid even with quite high elevation (alias, co-polar) angle which angles are never

reached in clinical imaging, due to the wide distance of FPD compared to FPD dimension

  • higher angles can be found in micro-CT, but approximation was shown acceptable even at inclination of

FDK properties

  1. at null inclination the solution is exact since it coincides with the fan-beam;
  2. FDK is exact also for cylindrical objects (constant in z,
  3. Integral values along axial lines (i.e., parallel to ) are exactly preserved;

this holds also for integrals along almost axial lines, i.e. less inclined than the FOV cylinder diagonal

∘

∘

κ = 0

f (x , y, z ) = f (x , y)

ahead of filtering, projections must be weighted by

ramp filter is applied, standard 1D ramp filtering is applied along the displacement with elevation

fixed , and the correction-filtering-backprojection, must be repeated for all fans

cos γ cos κ =

R

R

2

  • a

2

  • b

2

p ¯

C ( β , a , b) = (cos γ cos κ )

correction

p

C ( β , a , b) ⊛ h ramp

(a)

std 1D filter

↪ h ramp

(a) a b

( β , b)

2 D

to

3 D

Radon Transform (RT)

Central Slice Theorem (CST)

∃ of inverse RT

line integrals

1 D: p 1 D

(line)

planar integrals

2 D: p 2 D

( plane)

Partial Radon

Transform (PRT)

Full Radon

Transform (FRT)

The FRT implies integration of a volume over planes which are projected on a point located at the intercept of the normal

line through the origin.

purely theoretical set of planar projections

Let a plane (central FRT panel) is defined by

normal unit vector, with

displacement, with and

{p 2 D

(plane)} FRT

ξ ( ϑ , ψ )

ϑ azimuth

ψ elevation

t r ·

ξ = t

ξ ( ϑ , ψ ) = col [ cos ϑ cos ψ , sin ϑ cos ψ , sin ψ ]

f } (

ϑ , ψ , t )

= p

2 D (

ϑ , ψ )

(t ) =

+∞

−∞

f (

x )

δ

(

r ·

ξ − t

)

d r

Set of linear projections corresponding to the

collection of real projections of data along lines

Not really transforms, because:

i. not univocal (depend on the trajectory of the X-ray source S)

ii. not necessarily invertible

{p 1 D

(line)} PRT

The practical significance of the PRT is self-

evident, since X-ray projections (or LORs in ECT)

imply line integrations.

Nonetheless, to set the general mathematical

framework we need to refer to the FRT ↓

⇒ the Radon value (value of the FRT) for each plane is the plane integral of all the values

crossed by the plane

f } (

ϑ , ψ , t ) (

ϑ , ψ , t )

TECHNICAL NOTES ON 3D CT SCANS

Let’s address the recent 3D evolution of CTs

MRI

Magnetic Resonance Imaging (MRI): medical imaging technique used in radiology to form pictures of the anatomy and the physiological

processes of the body. It exploits strong magnetic fields, magnetic field gradients and radio waves to

generate images of organs in the body.

allows contrast of soft tissues

  • it does not require exposure to ionizing radiation (to any radiation actually), like CT and PET Scans
  • it’s a medical application of Nuclear Magnetic Resonance (NMR), which also has other applications
  • Source of signal and contrast are protons, abundant in water (70% of human tissues)

[Wikipedia]

Historical Framework

Central Slice

Theorem in 3D

Tuy-Smith

sufficient

condition

if the source in its trajectory encounters each plane through the

object a sufficient set is obtained

  • when it’s not satisfied, the grade of filling of the FRT space is also

important and tells us what incompleteness (and artifacts) will

affect the reconstructed image

  • A circular trajectory (common in CBCT for practical reasons) does

not touch all planes, leaves a shadow zone along the z -axis

Trajectories that satisfy the Tuy-Smith sufficient condition:

  1. helix as in MSSCT (so, a real instance)
  2. two non-parallel circles (rarely used in C-arm cone beam)
  3. circle and line (just theoretical)

the collected PRT set is not necessarily sufficient for a full reconstruction: despite to its

name, the PRT is not a “transform” (biunivocal) but a “pseudo-transform”

ℱ 3 D {

f (

x , y, z ) } (

ω r

= 0, ω s

= 0, ω t)

= ℱ {

p 2 D

(t ) } (

ω t)

The CST is accordingly modified considering the 2D-FT of the 1D projected values on the projection plane. The central slice in the 3D-

FT space now is a central plane.

  • If we collected all 1D projections, we should consider all possible directions defined by two angles (azimuth and elevation; i.e. the

orientation of the FPD). Each FPD orientation would collect (ray hitting position: ). So, rays, clearly redundant.

  • Redundancy is also verified in the FT, considering that the central planes given by the CST bear values and have possible

orientation

the PRT is not univocal : to define a specific PRT set we must know the 1D trajectory of the X-ray source S

(s, t )

3 {

f (

x , y, z ) }

ω r

= 0, ω s

, ω t

p r

(s, t ) }

( ω s

, ω t

2

2

∞

4

2 ∞

2

the CST holds: the 1D Fourier Transform of the projection data along

the axis is equal to the 3D FT values on the central slice along the

axis

FRT is a sufficient dataset for 3D image reconstruction from

projections

Spiral CT

Multi detector

CT

(MDCT)

Flat Panel

Detectors (FPD)

and

Cone Beam CT

(CBCT)

Spiral CT with increased number of detecting arches

  • can detect simultaneously several slices with

different inclination one over the other

  • Allows for the exploration of an entire slab of

several cm of thickness in a single revolution

speed usually ~ 4 revolutions / s entire thorax and

abdomen scanned with a few seconds breath hold

(sustainable by a diseased person)

Technical solution for allowing circular movement

  • x-ray needs high voltage and energy delivery
  • data must be transmitted fast

⇒ there cannot be wires going around the machine

Asinotropic vs isotropic voxel reconstruction

resol.=

A truly 3D geometry:

i. allows for surface and volume renderings and re-slice along

any desired tomographic view

ii. Reduces volume artifacts improving quantitative analysis

both if intensities and volumes of segmented objects

iii. Improves interface with computer aided design (CAD) of

anatomical parts, after (i) segmentation, (ii) surface

vectorization and (iii) import

2D CT 1x1x5 mm ⇒ asinotropic voxel

2D CT 1x1x1 mm ⇒ isotropic voxel

A planar detector is moved around the body by a C-arm, allowing the 3D scan for a CBCT

  • allow digital real-time X-ray
  • Initially where image intensifiers (IIs), but where gradually replaced by FDPs
  • Have now developed to FOVs and precision similar to full CTs
  • Common in: (i) operating room and radiotherapy where a CBCT cannot enter, (ii) dental CT where time is not an issue

Limitation : slowness

  • data download speed ( for a full scan, in CBCTs makes CBCT the diagnostic std)
  • Intrinsic to the technology row of pixels of the 2D FPD is downloaded serially
  • Other limitations are the resolution and quality of image, which need more reconstruction and post processing than

CBCTs

0.1s /frame → 10 s 0.25s

Spiral CT has been the first evolution towards 3D CT

  • fan beam with detector arch rotating opposite the x-

ray source combined rotation and translation

created a spiral around the body volume

1 H

DRIVING HARDWARE

MRI CONFIGURATIONS

RF coils

(antennas)

generate a transverse field oscillating at a RF tuned to the NMR, so that it excites the protons in the sample

and, they detect the transverse magnetization as it precesses in the plane (see later)

  • MRI scanner equipped with many RF coils (or RF arrays of coils), to adapt and focus the different parts of the body.
  • RF coils can both transmit RF pulses, to excite the NMR, and receive the NMR signal, coils doing both tasks are called

transceivers.

B

1

(t ) = B 1 x

(t )

i + B 1 y

(t )

j

M

x,y

x y

Properties of

a. amplitude: maximal magnetic field variation per unit of length , the

maximal spatial resolution and the minimum thickness of slices in 2D MRI

scans.

in clinical scanner ~ 10mT/m

b. slew rate corresponding to the switching speed

high slew-rate and low rise-time are required to switch the gradients quickly,

thus allowing ultra-fast imaging sequences

c. linearity - the degree of deviation from linearity must be evaluated considering

the FOV and generally with a proper phantom

G (t )

determines

different coils are used for

different applications

but they should always be

perpendicular to

B

0

gradient filed generated by a

Maxwell pair with I in opposite

directions

must operate in the linear

region

They can be

a. Volume coils - placed around the object

max homogeneity in sensitivity, but every voxel of the internal volume is sensed

with the same sensitivity (it’s all giving noise) applications are limited to

small volumes

b. Surface coils - placed near the object

higher sensitivity close to addressed surface organs, fading in deeper tissues

Geometry of RF coils

i. at RF even a simple wire loop implies a significant inductance (L) + passive

coupling of capacitors implies capacitance (C) resonance frequency

ii. Passive resistance (R) is always present, determining a resonance quality factor

Q - we don’t necessarily need a high Q, since modulation will lead to a BW of

values

⇒ f 0

ω

f 0

= 2 π

L C

Q =

R

L

C

ω 0

ω

Analogic Driving

Hardware

  1. Gradient coils connected to power (in audio band) - high power circuit
  2. RF coils connected to circuits for (i) modulation of TX RF signal, and (ii)

demodulation of RX RF signal

TX and RX channels are doubled to treat the in-phase and quadrature

components of RF, thus addressing both amplitude and phase modulation

  1. Driver circuits for in-phase and quadrature modulation of RF pulses, in audio

band

Digital Circuits

Computer

(workstation)

  1. selection and proper parameterization of sequences

Sequences: ordered implementation of RF pulses, gradient shaping/pulses, readout (sampling) phases, they determine

a. the FOV

b. the spatial sampling

c. the contrast and/or MRI modality

Setting a sequence for a clinical scan requires interacting at the console by framing the FOV over a scout image

(coarse and rapid image), fixing the orientation of slices (if any), and setting the sequence parameters. The

prediction of scan duration restituted by the computer is an important factor, since sequences may last tens of

minutes, in not properly tuned

  1. drives the synthesizers of gradient and RF pulses with the proper digital waveforms
  2. acquires and stores the raw sampled signals
  3. reconstructs the images
  4. navigates the images
  5. Synthesizers of waveforms, with the respective DACs (x,y,z)

gradients are switched on and off but sophisticated wave-shapes are used:

a. the leading and trailing edges should not be too sharp (see slew-rate);

b. special protocol require complex shapes (e.g. sinusoidal).

  1. Synthesizers and DACs for the envelops of the TX RF pulses.

different envelops are commonly used (see later)

  1. Sampling (ADC) of the demodulated RX RF signals

A recent trend is sampling on board of the antennas and digital transmission by optical fibers to the mainframe instead

of basic analog RF transmission. Advantages :

a. less transmission noise;

b. numerical demodulation permits to avoid the replication of analogic demodulation HW needed to deal with the

many signals to be acquired in parallel from arrays of RF antennas

G (t )

Tunnel MRI Limb MRI Open MRI

07 - NMR PHYSICS

Loading of coils is a complex operation,

because we have to inject a very high current

to get it to the switch point, leakage of

thermal energy needs to be managed

carefully, liquid helium (safety problems)

for smaller body parts B0 is vertical, also it can appear like a tunnel but has opening on one

side to access the patient

  • Surgery under MRI is the ultimate aim, an open setting would be

needed in that case (limited applications for now, safety is crucial

even if many advantages would emerge)

  • Knives could not be ferromagnetic, MRI image would be distorted

by any object entering the room and even more the patient area,

tatoos contain metal and can be distorted

μ (t )

⏟

Nuclear

Magnetization

B 0

M x y

(t )

bulk

magnetization

RF pulses

¯ M x y

(t )

transverse

magnetization

→ V (t )

⏟

signal in

antenna

S (t )

⏟

demodulated

RX RF

S ( k )

⏟

RF in correct

position encoding

S ( ω )

⏟

raw

data

→ → I ( r )

⏟

image

3. BULK

MAGNETIZATION

Let’s expand to of the ordinary differential equation (ODE), with :

constant implies the precession at a fixed angle we may focus on the

transverse components.

Let’s derive one more time

B

0

= B

0

k

μ z

ϑ ,

μ x

, μ y

d μ y

dt

ω 0

− 1 d

2 μ x

dt

2

d μ x

dt

ω 0 )

− 1

d

2 μ y

dt

2

substitute partials

into this equations

d

2 μ x

dt

2

  • ω 0

2 μ x

d

2 μ x

dt

2

  • ω 0

2 μ x

γ μ × B 0

d μ x

dt

= γ B 0

μ y

= ω 0

μ y

d μ y

dt

= − γ B 0

μ x

= − ω 0

μ x

d μ z

dt

= 0 ⇒ μ z

= const.

Spin precession - mathematical argumentation

based on a gyroscope model

The torque exerted by the force is orthogonal to the spin axis, which imposes the

precession of the gyroscope, keeping the axis inclination, without any loss of

energy.

torque

  • must be constant
  • flip angle must be constant

the trajectory is bound to a precession cone with axis on

precession law

Q = μ × B 0

d J

d t

Q ⊥ μ , J

J ⊥ d J /d t ⇒ J

d J /d t ⊥ B 0

⇒ ϑ

⇒ J z

d μ

d t

= γ μ × B 0

To describe the collective behavior of a spin system

M = macroscopic magnetization vector

N s

n= 1

μ n

M = M

0

= 0 B

0

= 0 , RF=0 no magnetization

M = M

0

= M

0

k ≠ 0 B 0

> 0 , RF=0 static magnetization

M = M

x

i + M y

j + M z

k ≠ M 0

B

0

> 0 , RF>0 excitation (see later)

In static magnetization, the intensity of depends on the imbalance of spin-up

and spin-down (More spin-up than spin down because it’s a lower energy state, but

some spin-downs persist because of thermal agitation)

Boltzmann Law

With Boltzmann constant, absolute temperature

Since , we can linearize the exponential, and we obtain

M

0

N

↑

N

↓

= exp

ΔN

k T

k T [K ]

ΔE ≪ k T

N

↑

− N

↓

≈ N

s

γ (h / 2 π )B 0

2 k T

μ x

= μ cos(− ω 0

t + φ 0

μ y

= μ sin(− ω 0

t + φ 0

μ x y

= μ x

  • j μ y

μ ¯ x y

= μ x y

e

−j( ω 0

t+ φ 0

)

From the latter equation we can conclude that

  1. MRI is a low sensitivity method, since only ppm of available nuclei contributes to the net magnetization and can be

synchronously activated.

good resolution is reached thanks to the huge amount of nuclei in the human body

  1. Sensitivity (thus SNR) increases proportionally to. That’s the reason of the trend towards higher and higher magnetic

fields

  1. Spin systems with higher have a proportionally higher sensitivity

B

0

γ

both transverse components oscillate at Larmor frequency

Let with initial phase, a general solution is:

a. The quadrature of defines the circular trajectory

b. , the vector points downward

⇒ ω 0

μ x

= μ cos (

ω 0

t − φ 0

φ 0

μ x

, μ y

ω 0

= − ω 0

k ω 0

Importance of Relaxation Times in Image Contrast

The impact of relaxations on NMR was immediately recognized:

  1. The FID signal vanishing with (10-100 ms) limits the sampled time window, hence the spectral resolution in NMR spectra;
  2. The long time of longitudinal relaxation (100 - 1000 ms) limits the speed by which the acquisition can be repeated (see next, repetition

time , to overcome the saturation window)

many and many repetitions are needed to be averaged to raise the SNR and sensitivity

In MRI this could be exploited in enhancing and differentiating the image contrast

  • by weighing the proton density (the basic contrast) by either relaxation time (see next, saturation recovery and

spine-echo imaging)

  • this permits to contrast soft tissues even if they have equal proton density (basically, water %)

Also, saturation can be exploited in several ways:

  1. silencing parts of the body that generate noise or movement artifacts (e.g., the neck and glottis in head

imaging) pulsating carotid and glottis moving creating artefacts that can be aliased in space and create noise in

the final image;

  1. silencing the background of motionless organs in MR angiography (MRA), to enhance the moving blood;
  2. silencing specific tissues (e.g., fat or liquor) with a specific (see next, inversion-recovery), to enhance

contrast or to cancel chemical shift artifacts;

  1. silencing an unwanted isochromat in in-vivo MR spectroscopy (MRS) (e.g., the overwhelming component of

water to enhance the spectral peaks of metabolites; see next the chemical shift selective sequences, CHESS).

4. EXCITATION,

RESONANCE

5. RELAXATION 2. Saturation : no new signal is possible, is dephased but still, so if

a new RF pulse is applied no signal is available because it flips the

magnetization to the longitudinal plane, not on the transverse (90°)

  1. Transverse Relaxation (T1)

spin balance goes back to the Boltzmann equilibrium, many spin-down nuclei

go back to spin-up losing energy due to spin-to-lattice interactions

longitudinal magnetization is restored

M

x y

N

↑

= N

↓

M

z

M (t ) : M x y

T 1

M z

A tuned RF (in-resonance condition) on the transverse plane

can excite spins to resonance moving them from their status, to:

  1. In-phase precessing
  2. Spin-flip : more nuclei in the spin-down condition

Which cause

macroscopic effect: moving the magnetization angle by

microscopic effects:

  1. precesses with the nuclei (since they are all in phase the

resultant is a vector oscillating with the nuclei)

  1. Traverse component of the vector

i. since the resultant is no longer parallel to , it has transverse

components

ii. When only the - this happens only if

enough energy is provided over a long enough time

is the only measurable effect: it’s a dipole rotating at RF

B

1

(t ) = B 1 x

(t )

B i + B 1 y

(t )

B j

α

B

1

: α = γ τ p

| B

1

M (t )

M (t )

M

x y

= M

0

z

sin( α )

B

0

N

↑

= N

↓

M = M

x y

⇒ M

x y

The resonance induced by the RF pulse doesn’t last forever, the way it decades gives information about the proton density

and, ultimately, about the tissue

  1. Free Induction Decay (T2)

longitudinal relaxation, given by getting out of phase, because of the spin-to-spin interactions.

The nuclei feel the external , the resonant but also all the of the neighboring nuclei

the RF signal gets smaller in amplitude (completely dephased, nothing is picked up)

M (t )

B

0

B

1

μ i

M (t ) : M x y

T 2

M x y

⇒ M

x y

T

2

T

1

T

R