To provide the most recent news and documentation www.pymvpa.org reflects the development 2.0 series (renamed 0.6 series) of PyMVPA. If you are interested in the documentation of the previous stable 0.4 series of PyMVPA, please visit v04.pymvpa.org.

mvpa2.datasets.mri.map2nifti

mvpa2.datasets.mri.map2nifti(dataset, data=None, imghdr=None, imgtype=None)

Maps data(sets) into the original dataspace and wraps it into an Image.

Parameters :

dataset : Dataset

The mapper of this dataset is used to perform the reverse-mapping.

data : ndarray or Dataset, optional

The data to be wrapped into NiftiImage. If None (default), it would wrap samples of the provided dataset. If it is a Dataset instance – takes its samples for mapping.

imghdr : None or dict, optional

Image header data. If None, the header is taken from dataset.a.imghdr.

imgtype : None or class, optional

Image class to be used for the instance. If None, the type is taken from dataset.a.imgtype.

Returns :

Image :

Instance of a class derived from nibabel.spatialimages.SpatialImage, such as Nifti1Image

NeuroDebian

NITRC-listed