MIR Documentation ================= .. image:: https://img.shields.io/badge/license-Apache%202.0-blue?style=flat-square :alt: License: Apache 2.0 :target: https://opensource.org/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 `_. .. code-block:: bash 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 :doc:`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 `_ .. toctree:: :maxdepth: 2 :caption: Contents: quick_start quick_start_brain_registration quick_start_ixi_benchmarking brain_template_example models/index api