cortex.xfm.Transform

class cortex.xfm.Transform(xfm, reference)[source]

A standard affine transform. Typically holds a transform from anatomical magnet space to epi file space.

__init__(self, xfm, reference)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(self, xfm, reference)

Initialize self.

from_freesurfer(fs_register, func_nii, subject)

Converts a FreeSurfer transform to a pycortex transform.

from_fsl(xfm, func_nii, anat_nii)

Converts an fsl transform to a pycortex transform.

save(self, subject, name[, xfmtype])

to_freesurfer(self, fs_register, subject[, …])

Converts a pycortex transform to a FreeSurfer transform.

to_fsl(self, anat_nii[, direction])

Converts a pycortex transform to an FSL transform.

Attributes

inv