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.

Downloading http://packages.bic.mni.mcgill.ca/mni-models/colin27/mni_colin27_1998_nifti.zip to /home/docs/.cache/torchio/mni_colin27_1998_nifti/mni_colin27_1998_nifti.zip
0it [00:00, ?it/s]
0%| | 0/24250681 [00:00<?, ?it/s]
1%| | 196608/24250681 [00:00<00:12, 1918301.56it/s]
4%|▍ | 1073152/24250681 [00:00<00:04, 5632655.24it/s]
9%|▉ | 2146304/24250681 [00:00<00:02, 7597000.66it/s]
14%|█▍ | 3448832/24250681 [00:00<00:02, 9354485.76it/s]
21%|██ | 5046272/24250681 [00:00<00:01, 11114461.43it/s]
29%|██▉ | 6979584/24250681 [00:00<00:01, 13272093.76it/s]
38%|███▊ | 9256960/24250681 [00:00<00:00, 16168422.77it/s]
50%|████▉ | 12066816/24250681 [00:01<00:00, 19304328.05it/s]
64%|██████▎ | 15409152/24250681 [00:01<00:00, 23454442.71it/s]
77%|███████▋ | 18685952/24250681 [00:01<00:00, 26185134.14it/s]
96%|█████████▋| 23379968/24250681 [00:01<00:00, 32300676.24it/s]
24256512it [00:01, 17119191.74it/s]
import torchio as tio
tio.datasets.Colin27().plot()
Total running time of the script: (0 minutes 5.256 seconds)