Conversion mechansims for IO and interaction between volumetric datasets and other type of neuroimaging data.
Convert the input to a VolumeImg.
Parameters : | obj : filename, pynifti or brifti object, or volume dataset.
copy: boolean, optional :
squeeze: boolean, optional :
world_space: string or None, optional :
|
---|---|
Returns : | volume_img: VolumeImg object :
|
Notes
The world space might not be correctly defined by the input object (in particular, when loading data from disk). In this case, you can correct it manually using the world_space keyword argument.
For pynifti objects, the data is transposed.
Save an nipy image object to a file.