Medical Image Registration: Concepts and Implementation: Feb 28, 2006 Jen Mercer
Medical Image Registration: Concepts and Implementation: Feb 28, 2006 Jen Mercer
Registration
Spatial
Registration Criteria
Landmark-based
Spatial Transformation
Rigid
Free-form mapping
Registration Framework
Transforms
x' cos
x'
y ' sin
sin x t x
cos y t y
x=T(x|p)=T(x,y|tx,ty,)
Goal:
Optimizer
Often
p i
x' j
p j
j
x'1
p
1
x'2
J p1
x'
n
p1
x'1
p2
x'2
p2
x'1
p1
x'1
pm
x'2
pm
x'n
pm
Identity Transform
Maps
Translation Transform
Fixed
Scaling Transform
Isotropic
vs. anisotropic
Fixed set is the origin of the coordinates
x'
x C C
2
x' 2 D 2
2 D
x' N
xN C N C N
x1
x
2
xN
T1
T
2
TN
x1
x2
xN
C1
C
(1 D) 2
CN
Rotation Transform
Fixed
x' cos
x'
y ' sin
cos
sin
sin x C x C x
cos y C y C y
sin x 1 cos
sin
sin
sin x Tx
cos y Ty
Cx
C
y
sin
cos
x
y
( x, y ) re (r cos , ir sin )
( x' , y ' ) re
i ( )
i i
re e
Optimization
S
'
i '
e e
e exp(G )
D=scaling factor
M=cost function
Apply transform to a point as:
i ( )
re De
Add Translation
Find
Scaling, Rotation,Translation
i
P' T ( P) ( P C ) De C
P=arbitrary point
C=fixed point of transformation
D=scaling factor
=rotation angle
P and C are complex numbers (x+iy) or rei
Store derivates of P in Jacobian matrix for
optimizer
Rigid if D=1, otherwise similarity transform
Affine Transformation
Collinearity
is preserved
x=A
x+T
A is a complex matrix of coefficients
With fixed point
x=A (xC) + C
A is
Quaternions
Quotient
of two vectors
Q= A / B
Operator
A= Q B
Represents
represented by 4 numbers
Versor
Direction parallel to axis of rotation
Rotation angle
Norm function of rotation angle
Tensor
Magnitude
Versor Composition
Versor
VCB = B / C
VBA = A / B
VCA = A / C
Versor
composition
Versor Addition
Optimization of Versors
Versor
exponentiation
V2 = V V
V = V1/2 V1/2
(V) =
(Vn) = n
Versor Increment
S (V )
dV
V
Rigid Transform in 3D
Numerical Representation of a
Versor
Right
versor
Numerical Representation of a
Versor
-i
=kj
-j = i k
-k = j i
Set of elementary quaternions
= [i,j,k]= [ei/2 , ej/2, ek/2]
Numerical Representation of a
Versor
Any
v=xi+yj+zk
x2+y2+z2=1
Any
Image Interpolators
2
functions
Nearest Neighbor
Uses
Linear Interpolation
Computed
neighbors
n=dimensionality of image
Weighting is based on distance
between requested position and
neighbors
B-spline Interpolation
Intensity
Metrics
Scalar
Mean Squares
Mean
Intensities
N
i
[ F ( xi ) M (T( xi , p ))]2
Mean Squares
Optimal
value of zero
Interpolator will affect computation time
and smoothness of metric plot
Assumes intensity representing the
same homologous point is in both
images
Images must be from same modality
Mean Squares
Normalized Correlation
Computes
pixel-wise cross-correlation
between the intensity of the two images,
normalized by the square root of the
autocorrelation of each image
For two identical images, metric =1
Misalignment, metric <1
Normalized Correlation
N
S ( p | F , M , T) 1
F ( x ) M (T ( x ))
i
2
F
(
x
)
M
i (T ( xi ))
i
-1
Normalized Correlation
Difference Density
Each
f(d)
Difference Density
Difference Density
1
S ( p | F , M , T)
[ F ( xi ) M (T ( xi )) 2 ]
1
2
Optimal
value is N
Poor matches = small measure values
Approximates the probability density
function of the difference image and
maximizes its value at zero
Difference Density
Width
of peak controlled by
Mutual Information
Notation
Reference
Mutual Information
Defined
in terms of entropies
If
I (u ( x), v(T ( x))) h(u ( x)) h(v(T ( x))) h(u ( x), v(T ( x)))
Parzen Windowing
Used
P*(z)
Entropy estimated based on P*(z)
Derivative
Stochastic Maximization of
Mutual Information
Stochastic Approximation
MRI-CT Example
Application
Register
3-D Model
Correlation
Conventional
Occlusion
Correlation
is significantly affected by
occlusion because intensity is
substantially different
Occlusion will reduce mutual
information at alignment
But mutual information measure degrades
gracefully when subject to partially
occluded imagery
Conclusions
Intensity