Lecture 13 Theory of Registration. ch. 10 of Insight into Images edited by Terry Yoo, et al. Spring (CMU RI) : BioE 2630 (Pitt)

Similar documents
All images are degraded

Lecture 15 Active Shape Models

Lecture 12 Level Sets & Parametric Transforms. sec & ch. 11 of Machine Vision by Wesley E. Snyder & Hairong Qi

Lecture 10 Segmentation, Part II (ch 8) Active Contours (Snakes) ch. 8 of Machine Vision by Wesley E. Snyder & Hairong Qi

Lecture 6 Linear Processing. ch. 5 of Machine Vision by Wesley E. Snyder & Hairong Qi. Spring (CMU RI) : BioE 2630 (Pitt)

2/7/18. For more info/gory detail. Lecture 8 Registration with ITK. Transform types. What is registration? Registration in ITK

Registration: Rigid vs. Deformable

Lecture 14 Shape. ch. 9, sec. 1-8, of Machine Vision by Wesley E. Snyder & Hairong Qi. Spring (CMU RI) : BioE 2630 (Pitt)

What are advanced filters? Lecture 19 Write Your Own ITK Filters, Part2. Different output size. Details, details. Changing the input requested region

The Pipeline. Lecture 17 ITK Pipeline. The pipeline idea. Image sources. Image to image filters. Input and output

RIGID IMAGE REGISTRATION

CS354 Computer Graphics Rotations and Quaternions

CS664 Lecture #16: Image registration, robust statistics, motion

Lecture 09 Segmentation (ch 8) ch. 8 of Machine Vision by Wesley E. Snyder & Hairong Qi. Dr. John Galeo3. Into connected regions

Learning-based Neuroimage Registration

Image Registration. Prof. Dr. Lucas Ferrari de Oliveira UFPR Informatics Department

Orientation & Quaternions

Animation. Keyframe animation. CS4620/5620: Lecture 30. Rigid motion: the simplest deformation. Controlling shape for animation

Goals for this lecture. Lecture 4 Getting Started with ITK! Getting help. Assignments. Assignments, cont. Grading of assignments

CMSC427: Computer Graphics Lecture Notes Last update: November 21, 2014

Tracking Computer Vision Spring 2018, Lecture 24

COMP30019 Graphics and Interaction Transformation geometry and homogeneous coordinates

The Insight Toolkit. Image Registration Algorithms & Frameworks

Image Registration Lecture 1: Introduction

Nonrigid Registration using Free-Form Deformations

1 Introduction Motivation and Aims Functional Imaging Computational Neuroanatomy... 12

Graphics and Interaction Transformation geometry and homogeneous coordinates

Basic principles of MR image analysis. Basic principles of MR image analysis. Basic principles of MR image analysis

HST.582J / 6.555J / J Biomedical Signal and Image Processing Spring 2007

Lecture 4: Transforms. Computer Graphics CMU /15-662, Fall 2016

Automatic Vascular Tree Formation Using the Mahalanobis Distance

Non-rigid Image Registration

CS612 - Algorithms in Bioinformatics

Visual Recognition: Image Formation

Occluded Facial Expression Tracking

3D Transformations and Complex Representations. Computer Graphics CMU /15-662, Fall 2016

Image Segmentation and Registration

Lecture 8: Fitting. Tuesday, Sept 25

Medical Image Registration by Maximization of Mutual Information

l ealgorithms for Image Registration

Norbert Schuff VA Medical Center and UCSF

Animation. CS 4620 Lecture 32. Cornell CS4620 Fall Kavita Bala

4.2 Description of surfaces by spherical harmonic functions

Computer Vision I - Filtering and Feature detection

Transformations. Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico

Animation. CS 4620 Lecture 33. Cornell CS4620 Fall Kavita Bala

2D transformations: An introduction to the maths behind computer graphics

Computer Animation II

Rigid and Deformable Vasculature-to-Image Registration : a Hierarchical Approach

Image Segmentation. Shengnan Wang

Shape Descriptor using Polar Plot for Shape Recognition.

Image Registration Lecture 4: First Examples

Quaternions and Rotations

Visual Tracking. Image Processing Laboratory Dipartimento di Matematica e Informatica Università degli studi di Catania.

a a= a a =a a 1 =1 Division turned out to be equivalent to multiplication: a b= a b =a 1 b

EE795: Computer Vision and Intelligent Systems

Prototype of Silver Corpus Merging Framework

Using Subspace Constraints to Improve Feature Tracking Presented by Bryan Poling. Based on work by Bryan Poling, Gilad Lerman, and Arthur Szlam

(Refer Slide Time: 0:32)

Quaternions and Rotations

Registration Techniques

Homework #1. Displays, Image Processing, Affine Transformations, Hierarchical Modeling

Assessing Accuracy Factors in Deformable 2D/3D Medical Image Registration Using a Statistical Pelvis Model

Computer Vision I - Basics of Image Processing Part 1

Polynomials. Math 4800/6080 Project Course

Particle Filtering. CS6240 Multimedia Analysis. Leow Wee Kheng. Department of Computer Science School of Computing National University of Singapore

Lecture 9: Hough Transform and Thresholding base Segmentation

IMAGE-BASED RENDERING AND ANIMATION

Rectification and Distortion Correction

Quantitative MRI of the Brain: Investigation of Cerebral Gray and White Matter Diseases

Context-sensitive Classification Forests for Segmentation of Brain Tumor Tissues

Chapter 3 Image Registration. Chapter 3 Image Registration

Lecture 6 Geometric Transformations and Image Registration. Lin ZHANG, PhD School of Software Engineering Tongji University Spring 2013

Game Engineering CS S-05 Linear Transforms

Math in image processing

COMP 175 COMPUTER GRAPHICS. Lecture 10: Animation. COMP 175: Computer Graphics March 12, Erik Anderson 08 Animation

Image processing and features

Surface Registration. Gianpaolo Palma

Chapter 4. Clustering Core Atoms by Location

3D Rotations and Complex Representations. Computer Graphics CMU /15-662, Fall 2017

Registration by continuous optimisation. Stefan Klein Erasmus MC, the Netherlands Biomedical Imaging Group Rotterdam (BIGR)

HOUGH TRANSFORM. Plan for today. Introduction to HT. An image with linear structures. INF 4300 Digital Image Analysis

2D and 3D Coordinate Systems and Transformations

Atlas Based Segmentation of the prostate in MR images

Recap. Disclaimer. Goals for this lecture. C++ vs. Python. Reference & Review Material

1 Historical Notes. Kinematics 5: Quaternions

Numerical Analysis and Statistics on Tensor Parameter Spaces

Akarsh Pokkunuru EECS Department Contractive Auto-Encoders: Explicit Invariance During Feature Extraction

Medical Image Segmentation Based on Mutual Information Maximization

Transforms. COMP 575/770 Spring 2013

Generalizing vesselness with respect to dimensionality and shape Release 1.00

Multi-modal Image Registration Using the Generalized Survival Exponential Entropy

Homework #1. Displays, Image Processing, Affine Transformations, Hierarchical Modeling

Image Features. Work on project 1. All is Vanity, by C. Allan Gilbert,

Quaternions and Dual Coupled Orthogonal Rotations in Four-Space

Dr. Ulas Bagci

1 Affine and Projective Coordinate Notation

Subspace Clustering with Global Dimension Minimization And Application to Motion Segmentation

Harder case. Image matching. Even harder case. Harder still? by Diva Sian. by swashford

Rotational Joint Limits in Quaternion Space. Gino van den Bergen Dtecta

Transcription:

Lecture 13 Theory of Registration ch. 10 of Insight into Images edited by Terry Yoo, et al. Spring 2018 16-725 (CMU RI) : BioE 2630 (Pitt) Dr. John Galeotti The content of these slides by John Galeotti, 2012-2018 Carnegie Mellon University (CMU), was made possible in part by NIH NLM contract# HHSN276201000580P, and is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc/3.0/ or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA. Permissions beyond the scope of this license may be available either from CMU or by emailing itk@galeotti.net. The most recent version of these slides may be accessed online via http://itk.galeotti.net/ Registration? The process of aligning a target image to a source image More generally, determining the spatial transform that maps points in one image to corresponding points in the other image 2 1

Registration Criteria What do we compare to determine alignment? Three general philosophies: Intensity-based This is what we ve mostly seen so far Compare actual pixel values from one image to another Comparison can be complex, such as with mutual information Segmentation-based 1. Segment the images 2. Register the binary segmentations Landmark-based Mark key points in both images (often by hand) Derive a transform that makes every pair of landmarks match. 3 Types of Spatial Transforms Rigid (rotate, translate) Affine (rigid + scale & shear/skew) Deformable (free-form = affine + vector field) Many others 4 2

ITK (Legacy) Registration Flowchart, with Theory Notation S(p F,M,T) F(x) M(x) T(p) p Figure 8.2 from the ITK Software Guide v 2.4, by Luis Ibáñez, et al., also showing the notation used by ch. 10 of Insight into Images, by Terry Yoo, et al. 5 Example Transform Notation Example notation for a rigid 2D transform: Goal: find parameter values (i.e., t x, t y, θ) that optimize some image similarity metric. 6 3

Optimizer Optimizer adjusts the transform in an attempt to improve the metric Often requires the derivative of the image similarity metric, S Constant during registration! Spatial coordinates (output of transform) 7 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 8 4

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 9 Identity Transform Does nothing Every point is mapped to itself Fixed set = everything (i.e., the entire space) 10 5

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 11 Scaling Transform Isotropic scaling (same in all directions) Anisotropic scaling Fixed set = origin = center = C But, we can shift the origin: C C 12 6

Translation from Scaling D = Scaling Factor C = Fixed Set i.e., shifted origin T i = Translation derived from scaling along dimension i if using center C 13 2D Rotation Transform Rotation transforms are typically specific to either 2D or 3D Fixed set = origin = center = C C C 14 7

Translation from 2D Rotation θ = Rotation angle C = Fixed Set (Just one point) T i = Translation along dimension i derived from rotation about center C 15 Polar Coordinates: 2D Rotation = Multiplication 16 8

Optimizing 2D Rotations Remember, optimization searches for the parameter values (i.e., θ) that give the best similarity score, S Ex: Gradient descent update step: The variation, G, is the gradient of S Step length is λ 17 Optimizing 2D Rotations with Scaling Transform is now multiplication by De iθ : Ex: Gradient descent update step: Apply transform to point as: 18 9

Similarity Transform P = T(P) = (P-C)De iθ +C P = arbitrary point C = fixed point D = scaling factor Rigid transform if D = 1 θ = rotation angle P & C are complex numbers: (x+iy) or re iθ Store derivatives of P in Jacobian matrix 19 Affine Transform Only thing guaranteed preserved is collinearity x = A x + T A is a complex matrix of coefficients Translation expressed as shifted fixed point: x = A (x-c) + C A is optimized similar to scaling factor 20 10

Quaternions: 3D Scaling & Rotation Quotient of two vectors: Q = A / B Operator that produces second vector: A = Q B Composed of a versor (for rotation) and a tensor (for scaling) Q = T V Requires a total of 4 numbers 21 Tensors: Representing 3D Scaling Often denoted T Tensors change the length of a vector For parallel vectors, tensors are scalars 22 11

Versors: Representing 3D Rotations Often denoted V Problem: 3D Polar coordinates have a singularity at the poles As do all 2-parameter 3D rotation representations Longitude lines converge at the north and south pole Solution: Use 3 parameters! A versor is a vector pointing along the axis of rotation. The length of a versor gives the amount of rotation. 23 Versors on Unit Spheres Arc c is the versor V AB that rotates the unit vector A to the unit vector B V AB = B / A The versor can be repositioned anywhere on the sphere without changing it V AC = V BC V AB NOT commutative V AC V AB V BC 24 12

Versor Addition Adding two versors is analogous to averaging them. Do NOT use versor addition with gradient descent Use composition instead: V t+1 =dv t V t 25 Optimization of Versors Versor angle should be scaled using an exponent V w will rotate by w times as much as V Θ(V w ) = wθ, where Θ(V)=θ Versor increment rule: 26 13

Rigid 3D Transform Use versor instead of phasors/polar coordinates P = V (P-C) +C P = V P + T, where T=C-V C P = point, T = translation, C = fixed point, V = versor Represented by 6 parameters: 3 for versor 3 for shifted center 27 Elementary Quaternions The 3 elementary quaternions are the 3 orthogonallyoriented right versors (i,j,k): -i = k j -j = i k -k = j i k j The angle of each of these versors is a right angle. i 28 14

Versors: Numerical Representation Any right versor v can be represented as: v = xi + yj + zk, with x 2 + y 2 + z 2 = 1 Any generic versor V can be represented using the right versor v parallel to its axis of rotation, plus the rotation angle θ: V = e vθ V = cosθ + v sinθ V = cosθ + (xi + yj + zk) sinθ, with x 2 + y 2 + z 2 = 1 V = (cosθ, x sinθ, y sinθ, z sinθ),with x 2 + y 2 + z 2 = 1 29 Similarity 3D Transform Replace versor with quaternion to represent both rotation and scale P = Q (P-C) + C P = Q P + T, where T=C-Q C P = arbitrary point C = fixed point Q = quaternion 30 15

An N-Dimensional Multi-Modal Registration Metric: Mutual Information 31 Different Modalities Problem: In CT, a tumor may be darker than the surrounding liver tissue, but in MRI, the tumor may be brighter, while both modalities may have liver darker than other organs, but vasculature may be visible in CT but not in MRI, etc. Directly comparing pixel values is hard Sometimes bright maps to bright Sometimes bright maps to dark Sometimes both bright & dark map to just dark, etc. Old, bad solutions: Try to simulate CT pixel values from MRI data, etc. But if we could do this, then we wouldn t need both modalities! Try to segment first, register second 32 16

Solution For each registration attempt, optimize the niceness of the resulting joint probability distributions for mapping pixel values from one modality to the other How? Maximize the mutual information between the two images 33 Mutual Information Based on information theory Idea: If both modalities scan the same underlying anatomy, then there should be redundant (i.e., mutual) information between them. If bones are visible, then they should overlap Image edges should mostly overlap In general, each image intensity value in one image should map to only a few image intensities in the other image. 34 17

Mutual Information Our similarity metric should now maximize: The mutual information between the images, = The information that each image provides about the other Assumption: Mutual information will be at a maximum when images are correctly aligned Note: We do NOT need a model of this mapping before registration the mapping is learned as it is optimized 35 Mutual Information, Conceptually Look at the joint histogram of pixel intensities For every pair of pixels, one mapped onto the other, use their pixel intensities to look up the appropriate bin of the 2D histogram, and then increment that bin. We want this joint histogram to be tightly clustered, i.e. peaky Bad registrations will make the joint histogram look like a diffuse cloud 36 18

Joint Histogram Examples Good Registration à Tightly Clustered Joint Histogram CT Values MR Values Liver & Vessels (dark) Vessels( darkest) Tumor( dark) Liver Other(b right) Bad Registration à Diffuse/Blurred Joint Histogram CT Values MR Values Liver & Vessels (dark) Vessels( darkest) Tumor( dark) Liver Other(b right) Other(b right) Other(b right) Tumor (Brightest) Tumor (Brightest) 37 Mutual Information: Details Calculated by measuring entropies M.I. = difference between joint entropy and the sum of individual entropies The math encourages transformations that make the images overlap on complex parts, something most similarity measures don t do In effect, M.I seeks a transform that finds complexity and explains it well. 38 19

Mutual Information: Is robust with respect to occlusion degrades gracefully Is less sensitive to noise and outliers Has an improved version, Mattes, which uses math that results in a smoother optimization space. Is now the de-facto similarity metric for multi-modal registration. 39 20