Guest User

Untitled

a guest
Nov 16th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. import nibabel as nib
  2. from scipy import ndimage
  3. from scipy import misc
  4.  
  5. img = nib.load(filepath)
  6. data = img.get_fdata()
  7.  
  8. # I would like to insert code here that creates an nii file in the current directory
  9.  
  10. while x < max:
  11. slice = data[x,:,:]
  12. slice = blur(slice)
  13.  
  14. # I would like to insert code here that writes slice by slice to the nii file above.
  15.  
  16. x = x + 1
Add Comment
Please, Sign In to add comment