Skip to content

Instantly share code, notes, and snippets.

View nicolay-r's full-sized avatar
🤗

Nicolay Rusnachenko nicolay-r

🤗
View GitHub Profile

Ubuntu 22.04 for Deep Learning

In the name of God

This gist contains steps to setup Ubuntu 22.04 for deep learning.


Install Ubuntu 22.04

@mrajchl
mrajchl / sitk_read_nii.py
Created June 8, 2018 15:01
Reading a .nii image with SimpleITK
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: