Metamorphic Image Registration Using a Semi-lagrangian Scheme

François Anton, Pietro Gori, Joan Glaunès

Abstract

This paper introduces a unified framework for image registration that combines Large Deformation Diffeomorphic Metric Mapping (LDDMM) and Metamorphosis. By employing a semi-Lagrangian scheme for geodesic shooting and leveraging PyTorch’s automatic differentiation, the authors provide a more stable, computationally efficient, and flexible method for matching images even when they have different topologies. The framework is particularly suited for medical imaging scenarios where structures may appear or disappear, such as tumor growth.

Introduction

In medical imaging, registration is the process of overlaying two images to facilitate comparison. Standard techniques like LDDMM are diffeomorphic, meaning they preserve topology. While effective for comparing healthy anatomy, these methods fail when images contain disparate features, such as a growing tumor or a new lesion. Furthermore, traditional Eulerian numerical schemes are sensitive to time step sizes due to the CFL condition; exceeding these limits results in numerical instability and artifacts like "ripples." This paper addresses these limitations by integrating metamorphosis with a robust semi-Lagrangian integration scheme.

Methods

The proposed framework rests on three key pillars:

  1. Unified Metamorphosis Framework: LDDMM and Metamorphosis are treated as a single optimization problem. Metamorphosis introduces an intensity additive term ($z_t$), enabling the model to "create" or "destroy" image intensity, thus accommodating topological changes.
  2. Semi-Lagrangian Geodesic Shooting: Instead of the fixed-grid Eulerian approach, a semi-Lagrangian scheme is used to compute grid deformation and interpolate image values. This method is significantly more stable and permits much larger time steps without integration failure.
  3. Automatic Differentiation: The framework is implemented in PyTorch, utilizing its autograd engine to handle complex calculus automatically. This eliminates the need for manual derivation of backward adjoint equations, making the system more adaptable.

Experimental Results

The framework was evaluated using synthetic 2D datasets, focusing on numerical stability and topological flexibility.

Numerical Stability

Head-to-head comparisons between Eulerian and semi-Lagrangian schemes reveal a stark difference in stability. At a time step of 1/38, the Eulerian scheme produces significant ripples and fails to estimate deformation correctly. In contrast, the semi-Lagrangian scheme remains perfectly stable even with a larger time step of 1/20.

Comparison of Eulerian and semi-Lagrangian schemes for image registration. The Eulerian approach exhibits numerical instability (ripples) at later time steps, while the semi-Lagrangian variants remain stable.

Topological Flexibility

To test the handling of topological mismatches, a source image of a "C" shape was registered to a target containing both a "C" and a small disk. While LDDMM struggled to match the target because it cannot create new structures, the Metamorphosis model successfully identified that creating the disk via intensity changes was the optimal solution.

Comparison between LDDMM and Metamorphosis for registering images with topological differences. Metamorphosis successfully generates the new structure (the disk) through intensity changes.

Conclusion and Future Work

The semi-Lagrangian metamorphic framework provides a stable and flexible approach to image registration, particularly for cases involving topological changes. While the current implementation relies on successive interpolations which may introduce slight blurring, the computational gains from bypassing the CFL condition and the ease of use provided by automatic differentiation are significant. Future work will involve scaling this framework to high-resolution 3D medical volumes and exploring more advanced optimization solvers like L-BFGS within the authors' Demeter library.

Summary updated

BibTeX
@inproceedings{anton2021metamorphic,
  author = {François Anton and Pietro Gori and Joan Glaunès},
  title = {{Metamorphic Image Registration Using a Semi-lagrangian Scheme}},
  booktitle = {GSI},
  year = {2021},
  doi = {10.1007/978-3-030-80209-7\_84},
}
Figure