All models

C2FViT

A coarse-to-fine vision transformer that predicts the 3D affine transform aligning two medical volumes.

Medical imaging · 811 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (58 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
12M
Operations
811
Framework
PyTorch
Recurrent
No
Published
CVPR 2022
Cited by
110 (as of 28 October 2026)
Authors
Tony C. W. Mok, Albert C. S. Chung
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m15012
Graph hash
c98327e5672f886be73fc8e9795cec7b9f6f2a01068980e8134e7b821c17681c
Skeleton hash
08c2c10004bfccc67a866c15a76b85eca248ae02ce1b67186110b47ee215b090
Architecture hash
8ea18077db8717c6d42849a066507e3af201462b32b96e81ee134c88ade32f9a
Diagram SHA-256
334210f2ddcccc78fe12d493de84b8ac2a552f604c2c904813232eee95f27069
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

C2FViT, the Coarse-to-Fine Vision Transformer, is a learning-based algorithm for 3D affine registration of medical images. The paper observes that most studies use convolutional neural networks (CNNs) to learn affine and non-parametric registration jointly, so the standalone performance of the affine subnetwork is less explored. It also says that existing CNN-based affine approaches focus either on local misalignment or on the global orientation and position of the input, which leaves them sensitive to spatial initialization and limits how well they generalize beyond the training dataset.

C2FViT uses the global connectivity and locality of the convolutional vision transformer, together with a multi-resolution strategy, to learn the global affine registration. The authors evaluate it on 3D brain atlas registration and template-matching normalization, and report better registration accuracy, robustness and generalizability than existing CNN-based affine methods while keeping the runtime advantage of learning-based methods. The official PyTorch code has scripts for unsupervised and semi-supervised training, for pairwise registration and for brain template-matching in MNI152 space. Some of that code is modified from PVT and ViT.

Key idea. C2FViT applies a convolutional vision transformer with a multi-resolution strategy to learn global affine registration of 3D medical images.

  • C2FViT
  • Coarse-to-Fine Vision Transformer
  • affine registration
  • medical image registration
  • 3D affine registration
  • brain MRI registration
  • template matching
  • 3D Vision Transformer

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{mok2022affinemedicalimageregistration,
      title={Affine Medical Image Registration with Coarse-to-Fine Vision Transformer}, 
      author={Tony C. W. Mok and Albert C. S. Chung},
      year={2022},
      eprint={2203.15216},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2203.15216}, 
}