Contents Menu Expand Light mode Dark mode Auto light/dark mode
TorchIO becomes one of the most downloaded articles from CMPB!
TorchIO
Logo
TorchIO
  • Getting started
  • Data structures
    • Image
    • Subject
    • Dataset
  • Patch-based pipelines
    • Training
    • Inference
  • Transforms
    • Preprocessing
    • Augmentation
    • Others
  • Medical image datasets
  • Additional interfaces
    • Command-line tools
    • 3D Slicer GUI
  • Examples gallery
    • Plot a subject
    • Exclude images from transform
    • Resample only one axis
    • Sample slices from volumes
    • Trace applied transforms
    • Transform video
  • GitHub repository
  • Paper
Back to top

Note

Go to the end to download the full example code

Plot a subject#

Use torchio.Subject.plot() to plot the images within a subject.

t1 (sagittal), head (sagittal), brain (sagittal), t1 (coronal), head (coronal), brain (coronal), t1 (axial), head (axial), brain (axial)
import torchio as tio

tio.datasets.Colin27().plot()

Total running time of the script: (0 minutes 1.028 seconds)

Download Jupyter notebook: plot_colin27.ipynb

Download Python source code: plot_colin27.py

Gallery generated by Sphinx-Gallery

Next
Exclude images from transform
Previous
Examples gallery
Copyright © 2024, Fernando Pérez-García
Made with Sphinx and @pradyunsg's Furo