RealKeyMorph: Keypoints in Real-world Coordinates for Resolution-agnostic Image Registration

Mina C. Moghadam, Alan Q. Wang, Omer Taub, Martin R. Prince, Mert R. SabuncuarXiv 2025 · DOI

Abstract

Medical image registration is a critical preprocessing step, yet most deep learning methods require images to be resampled onto a standardized grid, introducing interpolation artifacts and limiting robustness to varying resolutions. We present RealKeyMorph (RKM), a resolution-agnostic framework that performs registration directly in real-world scanner coordinates. By leveraging affine matrices from image headers to map detected keypoints into a shared physical space, RKM achieves high-accuracy alignment across diverse acquisition parameters without the need for resampling.

Introduction

In clinical practice, medical images are often acquired with diverse parameters, including varying pixel spacing, fields-of-view, and slice thicknesses. Standard registration pipelines, such as VoxelMorph, typically require all input images to be resampled to a fixed isotropic resolution (e.g., 1mm). This process is suboptimal; interpolation can introduce blurring or artifacts, particularly in "thick-slice" data like abdominal MRI stacks. Furthermore, models trained on fixed grids often fail when faced with the raw, heterogeneous data found in real-world hospital environments.

RealKeyMorph (RKM) addresses these challenges by shifting the registration logic from voxel-based alignment to physical-space alignment. By operating in millimeters rather than voxel indices, RKM remains robust to the underlying resolution of the input data.

Methods

RKM is built upon the KeyMorph framework, which utilizes anatomical landmarks (keypoints) to drive registration. The core innovation of RKM is the integration of real-world coordinates derived from image metadata.

Overview of the RealKeyMorph (RKM) pipeline, illustrating the flow from raw images to keypoint extraction in voxel coordinates, mapping to real-world coordinates via DICOM headers, and final alignment.

The RKM Pipeline

  1. Keypoint Detection: A shared U-Net architecture predicts $N$ keypoints in the native voxel coordinates of both the moving and fixed images.
  2. Coordinate Mapping: Every medical image (e.g., DICOM) contains an affine matrix ($A$) mapping voxel indices $(x, y, z)$ to physical locations in millimeters $(x_{real}, y_{real}, z_{real})$. RKM applies these matrices ($A_m$ and $A_f$) to move detected keypoints into a shared "world space."
  3. Confidence Weighting: The network outputs a confidence score ($w_k$) for each keypoint. This allows the model to ignore landmarks that may be cropped out of one view but present in another, a common occurrence in abdominal imaging.
  4. Closed-Form Solution: The model uses a weighted least-squares approach to find the optimal transformation—either Affine or non-rigid Thin-Plate Splines (TPS)—that minimizes the distance between corresponding keypoints in world space.

Experiments and Results

The researchers evaluated RKM on two challenging datasets to test its versatility across different anatomies and modalities.

Abdominal MRI Registration

This dataset included 206 patients with varying resolutions, often involving the registration of orthogonal planes (e.g., axial vs. coronal) with slice thicknesses up to 10mm. RKM achieved a median Dice score of 79%, significantly outperforming VoxelMorph (54%) and the original KeyMorph (51%). It also reduced the Hausdorff Distance to 23mm, compared to 49mm for VoxelMorph.

ADNI Brain Dataset

Tested on 665 subjects with 3D MRI volumes (T1, T2, and FLAIR), RKM reached a median Dice score of 89% and a Hausdorff Distance of 48mm. This demonstrated the model's effectiveness in multi-modal scenarios where image contrasts differ significantly.

Key Insights

  • Preserving Signal Integrity: By avoiding interpolation during the registration process, RKM preserves the original signal of the raw data, leading to superior alignment accuracy.
  • Interpretability: Unlike "black-box" models, RKM allows users to visually inspect predicted keypoints to understand which anatomical structures are driving the registration.
  • Robustness to Field-of-View: The confidence weighting mechanism allows the model to remain stable even when images do not perfectly overlap, making it ideal for clinical abdominal scans.

Conclusion and Future Work

RealKeyMorph represents a significant step toward resolution-agnostic medical image registration. While highly effective, the authors note that very noisy images or significant patient motion (e.g., breathing artifacts) can still impact keypoint detection. Future work will focus on slice-to-volume registration and enhanced data augmentation to further improve robustness against scanner-specific artifacts and motion-induced slice misalignment.

Summary updated

BibTeX
@misc{moghadam2025realkeymorph,
  author = {Mina C. Moghadam and Alan Q. Wang and Omer Taub and Martin R. Prince and Mert R. Sabuncu},
  title = {{RealKeyMorph: Keypoints in Real-world Coordinates for Resolution-agnostic Image Registration}},
  year = {2025},
  eprint = {2506.10344},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.10344},
}
Figure