Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import nibabel as nib
- from scipy import ndimage
- from scipy import misc
- img = nib.load(filepath)
- data = img.get_fdata()
- # I would like to insert code here that creates an nii file in the current directory
- while x < max:
- slice = data[x,:,:]
- slice = blur(slice)
- # I would like to insert code here that writes slice by slice to the nii file above.
- x = x + 1
Add Comment
Please, Sign In to add comment