cortex.mni.transform_mni_to_subject

cortex.mni.transform_mni_to_subject(subject, xfm, volarray, func_to_mni, template='/usr/share/fsl/5.0/data/standard/MNI152_T1_1mm_brain.nii.gz')[source]

Transform data in volarray from MNI space to functional space specified by xfm.

Parameters:
subjectstr

Subject identifier

xfmstr

Name of functional space that data will be transformed into.

volarraynumpy.ndarray

3D volume in MNI space (should have same size as template)

func_to_mninumpy.ndarray

Transformation matrix from xfm space to MNI space. Get this from compute_mni_transform.

templatestr, optional

Path to MNI template volume, used as reference. Defaults to FSL’s MNI152_T1_1mm_brain.

Returns:
nibabel.nifti1.Nifti1Image

volarray after transformation from MNI space to space specified by xfm.