MIR Documentation

License: Apache 2.0

Overview

MIR is a research toolkit for medical image registration, providing model implementations, training/inference scripts, and supporting utilities. It also includes curated wrappers for selected external packages to support TransMorph‑style registration workflows.

Documentation: https://junyuchen.me/MIR

Repository: https://github.com/junyuchen245/MIR

Installation

Prerequisite: Install a CUDA-enabled PyTorch build before installing MIR.

Editable install (recommended):

git clone https://github.com/junyuchen245/MIR.git
cd MIR
python3.8 -m pip install -U pip
python3.8 -m pip install -e .

Platform notes

  • deedsBCV integration is Linux-only. Windows users can still use MIR, but deedsBCV functionality is unavailable.

Getting started

Quick start: IXI benchmarking

Benchmark multiple registration models on the IXI dataset using the scripts in tutorials/IXI_benchmarking.

cd tutorials/IXI_benchmarking
python3.8 -u train_TransMorph.py
python3.8 -u train_TransMorphTVF.py
python3.8 -u train_SITReg.py
python3.8 -u train_SITReg_SPR.py

Example: Brain template construction

Build a population template from LUMIR24 using TransMorphTVF, VFA, or ConvexAdam. See Brain template example for the full walkthrough.

Included Projects

  1. Pretraining Deformable Image Registration Networks with Random Images Chen, Junyu, et al. *MIDL Short Papers*, 2025. Paper | Repo

  2. Correlation Ratio for Unsupervised Learning of Multi-modal Deformable Registration Chen, Xiaojian, et al. *SPIE Medical Imaging: Image Processing*, 2025. Paper | Repo

  3. Unsupervised Learning of Spatially Varying Regularization for Diffeomorphic Image Registration Chen, Junyu, et al. *Medical Image Analysis*, 2025. Paper | Repo

  4. Vector Field Attention for Deformable Image Registration Liu, Yihao, et al. *Journal of Medical Imaging*, 2024. Paper | Repo

  5. Unsupervised Learning of Multi-modal Affine Registration for PET/CT Chen, Junyu, et al. *IEEE NSS/MIC/RTSD*, 2024. Paper | Repo

  6. On Finite Difference Jacobian Computation in Deformable Image Registration Liu, Yihao, et al. *International Journal of Computer Vision*, 2024. Paper | Repo

  7. Deformable Cross-Attention Transformer for Medical Image Registration Chen, Junyu, et al. *MLMI Workshop*, MICCAI 2023. Paper | Repo

  8. Unsupervised Learning of Diffeomorphic Image Registration via TransMorph Chen, Junyu, et al. *WBIR*, 2022. Paper | Repo

  9. TransMorph: Transformer for Unsupervised Medical Image Registration Chen, Junyu, et al. *Medical Image Analysis*, 2022. Paper | Repo

External Wrappers Included

  1. Intensity Normalization Toolkit Reinhold, Jacob C., et al. *SPIE MI*, 2019. Paper | Repo

  2. ConvexAdam: Dual-Optimization-Based 3D Registration Siebert, Hanna, et al. *IEEE TMI*, 2024. Paper | Repo

  3. MultiMorph: On-demand Atlas Construction Abulnaga, S. Mazdak, et al. *CVPR*, 2025. Paper | Repo

  4. SITReg: Multi-resolution architecture for symmetric, inverse consistent, and topology preserving image registration. Honkamaa, Joel, and Pekka Marttinen. *MELBA*, 2024. Paper | Repo

  5. deedsBCV Repo

About Me

About Me

Contents: