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%| | 172032/24250681 [00:00<00:15, 1563606.81it/s]
2%|▏ | 450560/24250681 [00:00<00:10, 2234573.51it/s]
3%|▎ | 786432/24250681 [00:00<00:08, 2697815.91it/s]
5%|▍ | 1163264/24250681 [00:00<00:07, 2992870.91it/s]
7%|▋ | 1671168/24250681 [00:00<00:06, 3594863.82it/s]
9%|▉ | 2269184/24250681 [00:00<00:05, 4357802.69it/s]
12%|█▏ | 2949120/24250681 [00:01<00:04, 5027893.30it/s]
16%|█▌ | 3809280/24250681 [00:01<00:03, 6108923.73it/s]
19%|█▉ | 4694016/24250681 [00:01<00:02, 6871729.18it/s]
24%|██▍ | 5890048/24250681 [00:01<00:02, 8322519.00it/s]
30%|███ | 7372800/24250681 [00:01<00:01, 10244666.01it/s]
36%|███▋ | 8839168/24250681 [00:01<00:01, 11533855.15it/s]
45%|████▍ | 10878976/24250681 [00:01<00:00, 14118002.21it/s]
55%|█████▌ | 13361152/24250681 [00:01<00:00, 17305979.16it/s]
65%|██████▌ | 15876096/24250681 [00:01<00:00, 19615732.42it/s]
80%|████████ | 19431424/24250681 [00:01<00:00, 24335146.76it/s]
96%|█████████▌| 23183360/24250681 [00:02<00:00, 28264091.56it/s]
24256512it [00:02, 11718410.95it/s]
import torchio as tio
tio.datasets.Colin27().plot()
Total running time of the script: (0 minutes 8.869 seconds)