In the name of God
This gist contains steps to setup Ubuntu 22.04 for deep learning.
| import SimpleITK as sitk | |
| import numpy as np | |
| # A path to a T1-weighted brain .nii image: | |
| t1_fn = './brain_t1_0001.nii' | |
| # Read the .nii image containing the volume with SimpleITK: | |
| sitk_t1 = sitk.ReadImage(t1_fn) | |
| # and access the numpy array: |