Medical Image Registration Kumar Rajamani. Registration Spatial transform that maps points from one image to corresponding points in another image.

Slides:



Advertisements
Similar presentations
Today Composing transformations 3D Transformations
Advertisements

Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best.
Isoparametric Elements Element Stiffness Matrices
3D reconstruction.
The content of these slides by John Galeotti, © Carnegie Mellon University (CMU), was made possible in part by NIH NLM contract# HHSN P,
Computer vision: models, learning and inference Chapter 13 Image preprocessing and feature extraction.
Automatic Feature Extraction for Multi-view 3D Face Recognition
Mapping: Scaling Rotation Translation Warp
Image Indexing and Retrieval using Moment Invariants Imran Ahmad School of Computer Science University of Windsor – Canada.
Instructor: Mircea Nicolescu Lecture 13 CS 485 / 685 Computer Vision.
Medical Imaging Mohammad Dawood Department of Computer Science University of Münster Germany.
Medical Imaging Mohammad Dawood Department of Computer Science University of Münster Germany.
CSci 6971: Image Registration Lecture 3: Images and Transformations January 20, 2004 Prof. Chuck Stewart, RPI Dr. Luis Ibanez, Kitware Prof. Chuck Stewart,
Motion Analysis Slides are from RPI Registration Class.
Non-Rigid Registration. Why Non-Rigid Registration  In many applications a rigid transformation is sufficient. (Brain)  Other applications: Intra-subject:
Motion Analysis (contd.) Slides are from RPI Registration Class.
CSci 6971: Image Registration Lecture 4: First Examples January 23, 2004 Prof. Chuck Stewart, RPI Dr. Luis Ibanez, Kitware Prof. Chuck Stewart, RPI Dr.
Structure from motion. Multiple-view geometry questions Scene geometry (structure): Given 2D point matches in two or more images, where are the corresponding.
3-D Geometry.
Computing motion between images
3D orientation.
Pattern Recognition. Introduction. Definitions.. Recognition process. Recognition process relates input signal to the stored concepts about the object.
Face Recognition Using Neural Networks Presented By: Hadis Mohseni Leila Taghavi Atefeh Mirsafian.
National Alliance for Medical Image Computing Registration in Slicer3 Julien Jomier Kitware Inc.
CSE 185 Introduction to Computer Vision
CSE554AlignmentSlide 1 CSE 554 Lecture 8: Alignment Fall 2014.
CSE554Laplacian DeformationSlide 1 CSE 554 Lecture 8: Laplacian Deformation Fall 2012.
Computer Graphics Group Tobias Weyand Mesh-Based Inverse Kinematics Sumner et al 2005 presented by Tobias Weyand.
Chapter 9 Superposition and Dynamic Programming 1 Chapter 9 Superposition and dynamic programming Most methods for comparing structures use some sorts.
Multimodal Interaction Dr. Mike Spann
CSE554AlignmentSlide 1 CSE 554 Lecture 5: Alignment Fall 2011.
Local invariant features Cordelia Schmid INRIA, Grenoble.
Course 12 Calibration. 1.Introduction In theoretic discussions, we have assumed: Camera is located at the origin of coordinate system of scene.
Geometric Operations and Morphing.
Digital Image Processing Lecture 7: Geometric Transformation March 16, 2005 Prof. Charlene Tsai.
CSci 6971: Image Registration Lecture 3: Images and Transformations March 1, 2005 Prof. Charlene Tsai.
Course 13 Curves and Surfaces. Course 13 Curves and Surface Surface Representation Representation Interpolation Approximation Surface Segmentation.
Medical Image Analysis Image Registration Figures come from the textbook: Medical Image Analysis, by Atam P. Dhawan, IEEE Press, 2003.
Feature based deformable registration of neuroimages using interest point and feature selection Leonid Teverovskiy Center for Automated Learning and Discovery.
Spatio-Temporal Free-Form Registration of Cardiac MR Image Sequences Antonios Perperidis s /02/2006.
CSE554AlignmentSlide 1 CSE 554 Lecture 8: Alignment Fall 2013.
Local invariant features Cordelia Schmid INRIA, Grenoble.
Medical Image Analysis Dr. Mohammad Dawood Department of Computer Science University of Münster Germany.
Comparing Two Motions Jehee Lee Seoul National University.
ELE 488 Fall 2006 Image Processing and Transmission ( )
Course14 Dynamic Vision. Biological vision can cope with changing world Moving and changing objects Change illumination Change View-point.
776 Computer Vision Jan-Michael Frahm Spring 2012.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Instructor: Mircea Nicolescu Lecture 7
Instructor: Mircea Nicolescu Lecture 9
Image Warping 2D Geometric Transformations
Modeling Transformation
11/25/03 3D Model Acquisition by Tracking 2D Wireframes Presenter: Jing Han Shiau M. Brown, T. Drummond and R. Cipolla Department of Engineering University.
776 Computer Vision Jan-Michael Frahm Spring 2012.
CSE 554 Lecture 8: Alignment
图像处理技术讲座(3) Digital Image Processing (3) Basic Image Operations
University of Ioannina
Homogeneous Coordinates (Projective Space)
Lecture 12 Theory of Registration ch
Image Primitives and Correspondence
CSE 554 Lecture 9: Laplacian Deformation
Multi-modality image registration using mutual information based on gradient vector flow Yujun Guo May 1,2006.
CSC4820/6820 Computer Graphics Algorithms Ying Zhu Georgia State University Transformations.
Computational Neuroanatomy for Dummies
Course 13 Curves and Surfaces
2D transformations (a.k.a. warping)
Geometric Objects and Transformations (II)
Comparing Images Using Hausdorff Distance
SimpleITK Fundamental Concepts
Image Registration  Mapping of Evolution
Presentation transcript:

Medical Image Registration Kumar Rajamani

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

x y z Time axis : aging, development … … … … ……… Anatomy Label Function Pathology, Histology … Cross-subject, same modality Same subject, cross modality … Common coordinate system Image Registration  Data Fusion  Atlases for population studies  Motion Correction for image reconstruction  Surgery Planning

Affine Scale / Skew Example Registration Transformations Rigid Deformable Similarity Rigid + Scale Original

5 Image comparison Difference before registration Difference after registration Registered moving image

Before Registration B-Splines based Registration After Registration *GE Owned

B-Splines based Registration ( Hill et al.)

Dense NR Registration ( Hill et al.)

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

Spatial Transformation Rigid –Rotations and translations Affine –Also, skew and scaling Deformable –Free-form mapping

Registration framework pieces 2 input images, fixed and moving Metric - determines the “fitness” of the current registration iteration Optimizer - adjusts the transform in an attempt to improve the metric Interpolator - applies transform to image and computes sub-pixel values 11

Registration — General Problem Problem: Find transform T such that image f[p] matches m[T(p)] Domain of an individual subject Common coordinate system fm transformmetric optimizer Interpolate

Registration Framework

Transforms x’=T(x|p)=T(x,y|t x,t y,θ) Goal: Find parameter values that optimize image similarity metric

Optimizer Often require derivative of image similarity metric (S)

Understanding the Transform Jacobian J shows how changing p shifts a transformed point in the moving image space. This allows efficient use of a pre-computed moving-image gradient to infer changes in corresponding-pixel intensities for changes in p Now we can update dS/dp by just updating J 16

Jacobian and Image Gradient

Transforms Before we discuss specific transforms, let’s discuss the… Fixed Set = the set of points (i.e. physical coordinates) that are unchanged by the transform The fixed set is a very important property of a transform 18

Identity Transform Maps every point to itself Only used for testing Fixed set = everything (i.e., the entire space)

Translation Transform Fixed set = empty set Translation can be closely approximated by: –Small rotation about distant origin, and/or… –Small scale about distant origin –Both of these do have a fixed point Optimizers will frequently (accidently) do translation by using either rotation or scale –This makes the optimization space harder to use –The final transform may be harder to understand 20

Translation Transform Fixed set is an empty set

Scaling Transform Isotropic vs. anisotropic Fixed set is the origin of the coordinates C C

Scaling and Translation

2D Rotation Transform Rotation transforms are typically specific to either 2D or 3D Fixed set = origin = “center” = C 24 C C

Rotation Transform Fixed set is the origin

Rotations in Polar Coordinates

Transforms Affine Transform  S=Id reduces to Rigid case, ( e.g. Head motion correction )  Affine Transforms also encode scale/skew factors Scaling Rotation Translation Original Rigid

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

Sequence of translations and metric values at each iteration of the optimizer

Combined Scaling and Rotation D=scaling factor M=cost function Apply transform to a point as:

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

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 re iθ 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 (x–C) + C A is optimized similar to the scaling factor

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

Scalars and Versors Quaternion represented by 4 numbers –Versor Direction – parallel to axis of rotation Rotation angle Norm – function of rotation angle –Tensor Magnitude

Unit Sphere Versor Representation

Versor Composition Versor definition (vector quotient) –V CB = B / C –V BA = A / B –V CA = A / C Versor composition –V CA = V BA ◊ V CB –Not communative

Versor Addition

Optimization of Versors Versor exponentiation –V 2 = V ◊ V –V = V 1/2 ◊ V 1/2 –Θ(V) = θ –Θ(V n ) = nθ Versor Increment

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

Numerical Representation of a Versor Right versor

Numerical Representation of a Versor -i = k ◊ j -j = i ◊ k -k = j ◊ i Set of elementary quaternions = [i,j,k]= [e iπ/2, e jπ/2, e kπ/2 ]

Numerical Representation of a Versor Any right versor can be represented as –v=xi+yj+zk –x 2 +y 2 +z 2 =1 Any generic versor can be represented in terms of the right versor parallel to its axis and the rotation angle as –V=e vθ

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

Image Interpolators 2 functions –Compute interpolated intensity at requested position –Detect whether or not requested position lies within moving-image domain

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

Linear Interpolation Computed as the weighted sum of 2 n-1 neighbors n=dimensionality of image Weighting is based on distance between requested position and neighbors

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

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

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

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 Smoothness affected by interpolator

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 -1 added for minimum-seeking optimizers

Normalized Correlation

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

Difference Density λ controls the rate of drop off –Corresponds to the difference in intensity where f(d) has dropped by 50%

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

Difference Density Width of peak controlled by λ

Multi-modal Volume Registration by Maximization of Mutual Information Wells W, Viola P, Atsumi H, Nakajima S, Kikinis R

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

Figure 8.9 from the ITK Software Guide v 2.4, by Luis Ibáñez, et al. 62 MI Inputs T1 MRIProton density MRI

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

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

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)

Mutual Information Defined in terms of entropies If there are any dependencies, H(A,B)<H(A)+H(B)

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

Parzen Windowing Used to estimate probability density P*(z) Entropy estimated based on P*(z)

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

Stochastic Maximization of Mutual Information Similar to gradient descent Steps are taken that are proportional to dI/dT Repeat: –A  {sample of size N A drawn from x} –B  {sample of size N B drawn from x} –T  T+λ(dI/dT) λ is the learning rate Repeated a fixed # of times, or until convergence

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 –N A =N B =50 has been successful The noise introduced by the sampling can effectively penetrate small local minima

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

Initial Condition of MR-CT Registration

Final Configuration for MR-CT Registration

Initial Condition of MR-PET Registration

Final Configuration for MR-PET 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

3-D Model Tumor(green), Vessels(red), Ventricles(blue), Edema (orange)

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

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”

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

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

Registration Tools/ Softwares Elastix (ITK) ANTS (ITK) Plastimatch Slicer3D (ITK) MevisLab Fiji

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

April Kumar Rajamani GE Global Research