NiBabel

Access a cacophony of neuro-imaging file formats

Previous topic

nibabel.nifti1.Nifti1PairHeader

Next topic

nibabel.nifti1.save

Reggie -- the one

nibabel.nifti1.load

nibabel.nifti1.load(filename)

Load nifti1 single or pair from filename

Parameters:

filename : str

filename of image to be loaded

Returns:

img : Nifti1Image or Nifti1Pair

nifti1 single or pair image instance

Raises:

ImageFileError: if `filename` doesn’t look like nifti1 :

IOError : if filename does not exist