Lecture 18 Deformable / Non-Rigid Registration ch

Slides:



Advertisements
Similar presentations
Andrew Cosand ECE CVRR CSE
Advertisements

Image Registration  Mapping of Evolution. Registration Goals Assume the correspondences are known Find such f() and g() such that the images are best.
Various Regularization Methods in Computer Vision Min-Gyu Park Computer Vision Lab. School of Information and Communications GIST.
Medical Image Registration Kumar Rajamani. Registration Spatial transform that maps points from one image to corresponding points in another image.
Dynamic Occlusion Analysis in Optical Flow Fields
Beams and Frames.
OverviewOverview Motion correction Smoothing kernel Spatial normalisation Standard template fMRI time-series Statistical Parametric Map General Linear.
LECTURE SERIES on STRUCTURAL OPTIMIZATION Thanh X. Nguyen Structural Mechanics Division National University of Civil Engineering
Image Segmentation some examples Zhiqiang wang
On Constrained Optimization Approach To Object Segmentation Chia Han, Xun Wang, Feng Gao, Zhigang Peng, Xiaokun Li, Lei He, William Wee Artificial Intelligence.
Instructor: Mircea Nicolescu Lecture 13 CS 485 / 685 Computer Vision.
Motion Tracking. Image Processing and Computer Vision: 82 Introduction Finding how objects have moved in an image sequence Movement in space Movement.
Iterative closest point algorithms
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.
Computing motion between images
Optical Flow Estimation
COMP 290 Computer Vision - Spring Motion II - Estimation of Motion field / 3-D construction from motion Yongjik Kim.
Matching Compare region of image to region of image. –We talked about this for stereo. –Important for motion. Epipolar constraint unknown. But motion small.
Preprocessing II: Between Subjects John Ashburner Wellcome Trust Centre for Neuroimaging, 12 Queen Square, London, UK.
The content of these slides by John Galeotti, © Carnegie Mellon University (CMU), was made possible in part by NIH NLM contract# HHSN P,
CSSE463: Image Recognition Day 30 This week This week Today: motion vectors and tracking Today: motion vectors and tracking Friday: Project workday. First.
1 TEMPLATE MATCHING  The Goal: Given a set of reference patterns known as TEMPLATES, find to which one an unknown pattern matches best. That is, each.
Optical Flow Donald Tanguay June 12, Outline Description of optical flow General techniques Specific methods –Horn and Schunck (regularization)
CSE554AlignmentSlide 1 CSE 554 Lecture 5: Alignment Fall 2011.
CS 4487/6587 Algorithms for Image Analysis
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Optimization & Constraints Add mention of global techiques Add mention of calculus.
December 9, 2014Computer Vision Lecture 23: Motion Analysis 1 Now we will talk about… Motion Analysis.
1 University of Texas at Austin Machine Learning Group 图像与视频处理 计算机学院 Motion Detection and Estimation.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean 5403 T-R 3:00pm – 4:20pm Lecture #16.
Motion Analysis using Optical flow CIS750 Presentation Student: Wan Wang Prof: Longin Jan Latecki Spring 2003 CIS Dept of Temple.
Optical Flow. Distribution of apparent velocities of movement of brightness pattern in an image.
1 Motion Analysis using Optical flow CIS601 Longin Jan Latecki Fall 2003 CIS Dept of Temple University.
Rick Parent - CIS681 Motion Capture Use digitized motion to animate a character.
Motion Estimation using Markov Random Fields Hrvoje Bogunović Image Processing Group Faculty of Electrical Engineering and Computing University of Zagreb.
Lecture 9 Feature Extraction and Motion Estimation Slides by: Michael Black Clark F. Olson Jean Ponce.
Occlusion Tracking Using Logical Models Summary. A Variational Partial Differential Equations based model is used for tracking objects under occlusions.
MASKS © 2004 Invitation to 3D vision Lecture 3 Image Primitives andCorrespondence.
CSE 554 Lecture 8: Alignment
Character Animation Forward and Inverse Kinematics
Continuum Mechanics (MTH487)
Continuum Mechanics (MTH487)
Motion and Optical Flow
Morphing and Shape Processing
Lecture 13 Shape ch. 9, sec. 1-8, of Machine Vision by Wesley E
Image Primitives and Correspondence
Dynamical Statistical Shape Priors for Level Set Based Tracking
A special case of calibration
Range Imaging Through Triangulation
Dr. Arslan Ornek IMPROVING SEARCH
Lecture 5 Image Characterization ch. 4 of Machine Vision by Wesley E
Computational Neuroanatomy for Dummies
Lecture 19 ITK’s Path Framework
Lecture 7—Image Relaxation: Restoration and Feature Extraction ch
Lecture 15 Active Shape Models
Turning to the Masters: Motion Capturing Cartoons
Image and Video Processing
CSSE463: Image Recognition Day 30
Announcements Questions on the project? New turn-in info online
CSSE463: Image Recognition Day 30
Optical flow Computer Vision Spring 2019, Lecture 21
Lecture 3 Math & Probability Background ch
CSSE463: Image Recognition Day 30
Lecture 14 Shape ch. 9, sec. 1-8, of Machine Vision by Wesley E
Lecture 3 Math & Probability Background ch
(CMU ECE) : (CMU BME) : BioE 2630 (Pitt)
(CMU ECE) : (CMU BME) : BioE 2630 (Pitt)
Image Registration  Mapping of Evolution
Computer Animation Algorithms and Techniques
Presentation transcript:

Lecture 18 Deformable / Non-Rigid Registration ch Lecture 18 Deformable / Non-Rigid Registration ch. 11 of Insight into Images edited by Terry Yoo, et al. Note: To print these slides in grayscale (e.g., on a laser printer), first change the Theme Background to “Style 1” (i.e., dark text on white background), and then tell PowerPoint’s print dialog that the “Output” is “Grayscale.” Everything should be clearly legible then. This is how I also generate the .pdf handouts.

Registration: “Rigid” vs. Deformable Rigid Registration: Uses a simple transform, uniformly applied Rotations, translations, etc. Deformable Registration: Allows a non-uniform mapping between images Measure and/or correct small, varying discrepancies by deforming one image to match the other Usually only tractable for deformations of small spatial extent!

Deformable, i.e. Non-Rigid, Registration (NRR) B(T) Vector field (aka deformation field) T is computed from A to B Inverse warp transforms B into A’s coordinate system Not only do we get correspondences, but… We also get shape differences (from T)

NRR Clinical Background Internal organs are non-rigid The body can change posture Even skeletal arrangement can change Single-patient variations: Normal Pathological Treatment-related Inter-subject mapping: People are different! Atlas-based segmentation typically requires NRR

More Clinical Examples Physical brain deformation during neurosurgery Normal squishing, shifting and emptying of abdominal/pelvic organs and soft tissues Digestion, excretion, heart-beat, breathing, etc. Lung motion during respiration can be huge! Patient motion during image scanning

Optical Flow Traditionally for determining motion in video—assumes 2 sequential images Detects small shifts of small intensity patterns from one image to the next Output is a vector field, one vector for each small image patch/intensity pattern Basic gradient-based formulation assumes intensity values are conserved over time

Optical Flow Assumptions Images are a function of space and time After short time dt, the image has moved dx Velocity vector v = dx/dt is the optical flow I(x, t) = I(x+dx, t+dt) = I(x+vdt, t+dt) Resulting optical flow constraint: Cof = Ixv + It = 0 Image spatial gradient Image temporal derivative

Optical Flow Constraint Optical flow constraint dictates that when an image patch is spatially shifted over time, that it will retain its intensity values Let image A = I(x, t =0) and let B = I(x, t =1) Then It = A(T) – B This alone is not a sufficient constraint!

NRR Is Ill-Posed Review of well-posed problems: A solution exists, is unique, and depends continuously on the data Otherwise, a problem is ill-posed Ambiguity within homogenous regions: So, solution is NOT unique! A B ?

Very Ill-Posed Problem NRR answer is not unique, and… NRR Search-space is often ∞-dimensional! Solution: Regularization Adding a regularization term can provide provable uniqueness and a computable subspace Regularization usually based on continuum mechanics T is restricted to be physically admissible We’re typically deforming physical anatomy, after all Optimum T should deform “just enough” for alignment But what about Inter-subject mapping?

NRR Regularization Methods Numerous continuum mechanical models available for regularization priors Elastic Diffusion Viscous Flow Curvature Optimization is then physical simulation over time, t, of trying to deform one image shape to match another This optimization has 3 equivalent formulations: Global potential energy minimization Variational or weak form, as used in finite-element methods Euler-Lagrangian (E-L) equations, as used in finite-difference techniques

Langrangian View Elastic physical model: How much have we stretched, etc., from our original image coordinates? Simulation calculates the physical model’s resistance to deformation based on the total deformation from time t=0 to t=now. T is the final vector field ūf : ūf = ū( t=tfinal ) A(X + ūf) ~ B(x) X = x - ūf Deformation at time t: Deformation at time t + dt: A( X+ū(t) ) A( X ) Note: Capital X for A’s original coordinates Lowercase x for B’s original coordinates A( X+ū(t+dt) ) A( X )

Eulerian View Deformation at time t: Deformation at time t + dt: Viscous-flow physical model: How much have we flowed from our immediately previous simulation state? Simulation calculates the physical model’s resistance to deformation based on the incremental deformation from time t=(now-1) to t=now. T is the aggregate flow of x(t), based on accumulated optical flow (i.e. velocity) v(t): x(t) = x + v(t) A( x(t=tfinal) ) ~ B(x) Deformation at time t: Deformation at time t + dt: A( x+v(t) ) A( x ) Note: Lowercase x for B’s original coordinates A( x+v(t) ) A( x+v(t+dt) )

Comparison of Regularization Reference Frames Langrangian The entire deformation is regularized Well constrained for “normal” physical deformation Too constrained to achieve “large” deformations Not ideal for many inter-subject mapping tasks Eulerian Only the incremental updates are regularized Underconstrained for “normal” physical deformation Readily achieves large, inter-subject deformations Unrealistic transformations can result

Transient Quadratic (TQ) Approach Enables better-constrained large deformations Uses Lagrangian regularization for specified time interval, followed by a re-gridding strategy After an interval’s deformation reaches a threshold, we begin a new interval for which the last deformation becomes the new starting point TQ thus resets the coordinate system while permanently storing the past state of the algorithm Results in a hybrid E+L physical model, resembling soft, stretchable plastic Maintains the elastic regularization for a given time then takes on a new shape until new stresses are applied

Optical Flow Regularized Goal: Minimize global potential energy, ED First term adjusts v to make the images match (wants Cof = 0 within the bounded domain Ω) Second term adds a stabilizing function Ψ, typically a regulator operator L applied to v

Optical Flow E-L Regularized After deriving the E-L equations & setting their derivative = 0, we find that the… Potential energy minimum will occur when: First term minimizes optical flow constraint Second term minimizes Laplacian (i.e. roughness) of velocity field v Note that this equation is evaluated locally Allows for efficient implementation

Demons Algorithm: Math Very efficient gradient-descent NRR algorithm Originally conceived as having “demons” push image level sets around, but is also… Based on E-L regularized optical flow Alternates between minimizing each half of the previous equation: Descent in optical flow direction, based on: Smoothing, which estimates vxx=0 with a difference-of-Gaussian filter, by applying a Gaussian on each iteration

Demons Algorithm: Code Initialize solution (i.e. total vector field) = Identity Loop: Estimate vector field update Use (stabilized) optical flow Add update to total vector field Blur total vector field (for regularization) Allows much larger deformation fields than optical flow alone. Langrangian registration: blur the total vector field (as above) Eulerian registration: blur the individual vector-field updates

Choices & Details There are many more NRR algorithms available Almost all of them are slower than demons, but they may give you better results See the text for details, and lots of helpful pictures