Menu
  • HOME
  • TAGS

Creating a nifti file from a numpy array

python,numpy,file-format,nifti

The replacement function in the newer NiBabel package would be called Nifty1Image. However, you are required to pass in the affine transformation defining the position of that image with respect to some frame of reference. In its simplest form, it would look like this: import nibabel as nib import numpy...