mercer registration

68
Registration: Concepts and Implementation Feb 28, 2006 Jen Mercer

Upload: sweta-tripathi

Post on 17-Jul-2016

10 views

Category:

Documents


0 download

DESCRIPTION

Mercer Registration

TRANSCRIPT

Page 1: Mercer Registration

Medical Image Registration: Concepts and Implementation

Feb 28, 2006Jen Mercer

Page 2: Mercer Registration

Registration

Spatial transform that maps points from one image to corresponding points in another image

Page 3: Mercer Registration

Registration Criteria

Landmark-based– Features selected by the user

Segmentation-based– Rigidly or deformably align binary

structures Intensity-based

– Minimize intensity difference over entire image

Page 4: Mercer Registration

Spatial Transformation

Rigid– Rotations and translations

Affine– Also, skew and scaling

Deformable– Free-form mapping

Page 5: Mercer Registration

Registration Framework

Page 6: Mercer Registration

Transforms

x’=T(x|p)=T(x,y|tx,ty,θ) Goal: Find parameter values that

optimize image similarity metric

y

x

tt

yx

yx

x

cossinsincos

''

'

Page 7: Mercer Registration

Optimizer

Often require derivative of image similarity metric (S)

j j

j

ji

xxMFSMFS

pp

pp '

'),,|(),,|(

m

nn

m

m

px

px

px

px

px

px

px

px

px

J

'''

'''

'''

1

1

1

2

2

2

1

2

1

2

1

1

1

Page 8: Mercer Registration

Jacobian and Image Gradient

Page 9: Mercer Registration

Identity Transform

Maps every point to itself Only used for testing Fixed set (C): set of points that remain

unchanged by transform

Page 10: Mercer Registration

Translation Transform

Fixed set is an empty set

Page 11: Mercer Registration

Scaling Transform

Isotropic vs. anisotropic Fixed set is the origin of the coordinates

Page 12: Mercer Registration

Scaling and Translation

NNNNNN C

CC

D

x

xx

D

C

CC

Cx

CxCx

D

x

xx

x

2

1

2

1

2

1

22

11

2

1

)1(

'

''

'

NN T

TT

x

xx

D2

1

2

1

Page 13: Mercer Registration

Rotation Transform Fixed set is the origin

y

x

y

x

CC

CyCx

yx

x

cossinsincos

''

'

y

x

CC

yx

cos1sinsincos1

cossinsincos

y

x

TT

yx

cossinsincos

Page 14: Mercer Registration

Rotations in Polar Coordinates

yx

yx

x

cossinsincos

''

'

iii

i ierereyx

rrreyx

)()','(

)sin,cos(),(

Page 15: Mercer Registration

Optimization

Search for value of θ that minimizes cost function S

Gradient descent algorithm– Update of parameter

– G is the variation from the gradient of the cost function

is step length of algorithm

)exp(

'

' Geeee

S

Siiii

Page 16: Mercer Registration

Combined Scaling and Rotation

D=scaling factor M=cost function Apply transform to a point as:

M

DMDG i

iii DereDreyx )()','(

Page 17: Mercer Registration

Add Translation

Find fixed point of transformation Translation (d) is result of scaling and

rotation

Page 18: Mercer Registration

Scaling, Rotation,Translation

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

CDeCPPTP i)()('

Page 19: Mercer Registration

Affine Transformation

Collinearity is preserved x’=A x + T A is a complex matrix of coefficients With fixed point

– x’=A (x–C) + C A is optimized similar to the scaling

factor

Page 20: Mercer Registration

Quaternions

Quotient of two vectors– Q= A / B

Operator that produces second vector– A= Q B

Represents orientation of one vector with respect to another, as well as ratio of their magnitudes– Versor-rotates vector– Tensor-changes vector magnitude

Page 21: Mercer Registration

Scalars and Versors

Quaternion represented by 4 numbers– Versor

• Direction – parallel to axis of rotation• Rotation angle• Norm – function of rotation angle

– Tensor• Magnitude

Page 22: Mercer Registration

Unit Sphere Versor Representation

Page 23: Mercer Registration

Versor Composition

Versor definition (vector quotient)– VCB = B / C

– VBA = A / B

– VCA = A / C Versor composition

– VCA = VBA ◊ VCB – Not communative

Page 24: Mercer Registration

Versor Addition

Page 25: Mercer Registration

Optimization of Versors

Versor exponentiation– V2 = V ◊ V

– V = V1/2 ◊ V1/2

– Θ(V) = θ– Θ(Vn) = nθ

Versor Increment

VVSdV )(

Page 26: Mercer Registration

Rigid Transform in 3D

Use quaternions instead of phasors P’=V*(P-C)+C P’=V*P+T, T=C-V*C P=point, V=Versor, T=Translation, C=fixed

point Transform represented by 6 parameters

– Three numbers representing versor– Three components of fixed coordinate system

Page 27: Mercer Registration

Numerical Representation of a Versor Right versor

Page 28: Mercer Registration

Numerical Representation of a Versor

-i = k ◊ j -j = i ◊ k -k = j ◊ i Set of elementary quaternions = [i,j,k]= [eiπ/2 , ejπ/2, ekπ/2]

Page 29: Mercer Registration

Numerical Representation of a Versor Any right versor can be represented as

– v=xi+yj+zk– x2+y2+z2=1

Any generic versor can be represented in terms of the right versor parallel to its axis and the rotation angle as– V=evθ

Page 30: Mercer Registration

Similarity Transform in 3-D

Replace versor of rigid transform with quaternion to represent rotation and scale changes

x’=Q*(x-C)+C x’=Q*x+T, T=C-Q*C

Page 31: Mercer Registration

Image Interpolators

2 functions– Compute interpolated intensity at

requested position– Detect whether or not requested position

lies within moving-image domain

Page 32: Mercer Registration

Nearest Neighbor

Uses intensity of nearest grid position Computationally cheap Doesn’t require floating point

calculations

Page 33: Mercer Registration

Linear Interpolation

Computed as the weighted sum of 2n-1 neighbors

n=dimensionality of image Weighting is based on distance

between requested position and neighbors

Page 34: Mercer Registration

B-spline Interpolation

Intensity calculated by multiplying B-spline coefficients with shifted B-spline kernels

Higher spline orders require more pixels to computer interpolated value

Third-order B-spline kernels typically used because good tradeoff between smoothness and computational burden

Page 35: Mercer Registration

Metrics

Scalar function of the set of transform parameters for a given fixed image, moving image, and transformation type

Typically samples points within fixed image to compute the measure

Page 36: Mercer Registration

Mean Squares

Mean squared difference over all the pixels in an image

Intensities are interpolated for the moving image

For gradient-based optimization, derivative of metric is also required

2))],(()([1),,|( pxMxFN

MFpS iN

i i TT

Page 37: Mercer Registration

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

Page 38: Mercer Registration

Mean Squares

Smoothness affected by interpolator

Page 39: Mercer Registration

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

Page 40: Mercer Registration

Normalized Correlation

-1 added for minimum-seeking optimizers

N

i

N

iii

N

iii

xTMxF

xTMxFMFpS

))(()(

))(()(1),,|(

22

T

Page 41: Mercer Registration

Normalized Correlation

Page 42: Mercer Registration

Difference Density

Each pixel’s contribution is calculated using bell-shaped function

f(d) has a maximum of 1 at d=0 and minimum of zero at d=+/-infinity

d is difference in intensity b/w F and M

2)/(11)(

ddf

Page 43: Mercer Registration

Difference Density

λ controls the rate of drop off– Corresponds to the difference in intensity

where f(d) has dropped by 50%

Page 44: Mercer Registration

Difference Density

Optimal value is N Poor matches = small measure values Approximates the probability density

function of the difference image and maximizes its value at zero

2

2 ]))(()([1

1),,|(

ii xTMxF

MFpS

T

Page 45: Mercer Registration

Difference Density

Width of peak controlled by λ

Page 46: Mercer Registration

Multi-modal Volume Registration by Maximization of Mutual Information

Wells W, Viola P, Atsumi H, Nakajima S, Kikinis R

Page 47: Mercer Registration

Registering Images from Same Modality Typical measure of error is sum of

squared differences between voxels values

This measure is directly proportional to the likelihood that the images are correctly registered

Same measure is NOT effective for images of different modalities

Page 48: Mercer Registration

Relationship Between Images of Different Modalities Example: We should be able to construct a

function F() that predicts CT voxel value from corresponding MRI value

Registration could be evaluated by computing F(MR) and comparing it to the CT image– Via sum of squared differences (or correlation)

In practice, this is a difficult and under-determined problem

Page 49: Mercer Registration

Mutual Information

Theory: Since MR and CT both describe the underlying anatomy, there will be mutual information between the two images

Find the best registration by maximizing the information that one image provides about the other

Requires no a priori model of the relationship Assumes that max. info. is provided when the

images are correctly registered

Page 50: Mercer Registration

Notation

Reference (fixed) volume: u(x) Test (moving) volume: v(x) x: coordinates of the volume T: transformation from coordinate frame

of reference volume to test volume v(T(x)): test volume voxel associated

with reference volume voxel u(x)

Page 51: Mercer Registration

Mutual Information

Defined in terms of entropies

If there are any dependencies, H(A,B)<H(A)+H(B)

)BA,()B()A()BA,(

),(log),()BA,(

)(log)()B(

)(log)()A(

HHHI

dabapbapH

dbbpbpH

daapapH

ABAB

BB

AA

Page 52: Mercer Registration

Maximizing Mutual Information

h(v(T(x))) encourages transformations that project u into complex parts of v

Last term of MI eqn contributes when u and v are functionally related

Together, last two terms of MI eqn identify transforms that find complexity and explain it well

)))((),(()))((())(()))((),((

)))((),((maxargˆ

xTvxuhxTvhxuhxTvxuI

xTvxuITT

Page 53: Mercer Registration

Parzen Windowing Used to estimate probability density

P*(z) Entropy estimated based on P*(z)

Page 54: Mercer Registration

Finding Maximum of I(T)

To find maximum of mutual information, calculate its derivative:

Derivative of reference volume is 0, b/c not a function of T

Entropies depend on covariance of Parzen window functions

)))((),((*)))(((*))((*)( xTvxuhdTdxTvh

dTdxuh

dTdTI

dTd

Page 55: Mercer Registration

Stochastic Maximization of Mutual Information

Similar to gradient descent Steps are taken that are proportional to dI/dT Repeat:

– A {sample of size NA drawn from x}

– B {sample of size NB drawn from x}– T T+λ(dI/dT)

λ is the learning rate Repeated a fixed # of times, or until

convergence

Page 56: Mercer Registration

Stochastic Approximation

Uses noisy derivative estimates instead of the true derivative for optimizing a function

Authors have found that technique always converges to a transformation estimate that is close to locally optimal– NA=NB=50 has been successful

The noise introduced by the sampling can effectively penetrate small local minima

Page 57: Mercer Registration

MRI-CT Example

Coarse to fine registration Images were smoothed by convolving with

binomial kernel Rigid transform represented by displacement

vectors and quaternions Images were sampled and tri-linear

interpolation was used 5 levels of resolution

– 10000, 5000(*4) iterations

Page 58: Mercer Registration

Initial Condition of MR-CT Registration

Page 59: Mercer Registration

Final Configuration for MR-CT Registration

Page 60: Mercer Registration

Initial Condition of MR-PET Registration

Page 61: Mercer Registration

Final Configuration for MR-PET Registration

Page 62: Mercer Registration

Application Register 2 MRIs of brain (SPGR and

T2-weighted) to visualize anatomy and tumor– Create at 3-D model for surgical planning

and visualization

Page 63: Mercer Registration

3-D Model

Tumor(green), Vessels(red), Ventricles(blue), Edema (orange)

Page 64: Mercer Registration

Correlation Conventional correlation aligns two

signals by minimizing a summed quadratic difference between their intensities

If intensity of one signal is negated, then intensities no longer agree, and alignment by correlation will fail

Mutual information is not affected by negation of either signal

Page 65: Mercer Registration

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”

Page 66: Mercer Registration

Comparison to Other Methods

Many researchers use surface-based methods to register MRI and PET imagery– Need for reliable segmentation is a drawback

Others use joint entropy to characterize registration– “not robust”: difficulty describing partial overlap– Mutual Information is better because it has a larger

capture range• Additional influence from term that rewards for complexity

in portion of test volume into which reference volume is transformed

Page 67: Mercer Registration

Comparison to Other Methods

Woods et al. register MR and PET by minimizing range of PET values associated with a particular MR intensity value– Effective when test volume distribution is

Gaussian– Mutual Information can handle data that is multi-

modal– Woods’ measure is sensitive to noise and outliers

Page 68: Mercer Registration

Conclusions

Intensity based techniques work directly with volumetric data (vs. segmentation)

Mutual information does not rely on assumptions about nature of imaging modalities

Have also used this technique to register 3D volumetric images to video images of patients