NiBabel

Access a cacophony of neuro-imaging file formats

Previous topic

nibabel.loadsave.read_img_data

Next topic

nibabel.orientations

This Page

Reggie -- the one

nibabel.loadsave.save

nibabel.loadsave.save(img, filename)

Save an image to file adapting format to filename

Parameters :

img : SpatialImage

image to save

filename : str

filename (often implying filenames) to which to save img.

Returns :

None :