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%| | 122880/24250681 [00:00<00:21, 1103534.97it/s]
3%|▎ | 835584/24250681 [00:00<00:05, 4199768.77it/s]
7%|▋ | 1794048/24250681 [00:00<00:03, 6189204.18it/s]
12%|█▏ | 2965504/24250681 [00:00<00:02, 7847244.76it/s]
18%|█▊ | 4382720/24250681 [00:01<00:02, 9630541.20it/s]
25%|██▌ | 6111232/24250681 [00:01<00:01, 11561402.06it/s]
34%|███▍ | 8200192/24250681 [00:01<00:01, 13909781.82it/s]
44%|████▍ | 10756096/24250681 [00:01<00:00, 16793142.98it/s]
57%|█████▋ | 13852672/24250681 [00:01<00:00, 20148003.56it/s]
72%|███████▏ | 17571840/24250681 [00:01<00:00, 24161173.75it/s]
90%|█████████ | 21864448/24250681 [00:01<00:00, 29436055.47it/s]
24256512it [00:01, 13547728.27it/s]
import torchio as tio
tio.datasets.Colin27().plot()
Total running time of the script: (0 minutes 6.479 seconds)