cortex.database.Database.get_mnixfm

Database.get_mnixfm(subject, xfm, template=None)[source]

Get transform from the space specified by xfm to MNI space.

Parameters:
subjectstr

Subject identifier

xfmstr

Name of functional space transform. Can be ‘identity’ for anat space.

templatestr or None, optional

Path to MNI template volume. If None, uses default specified in cortex.mni

Returns:
mnixfmnumpy.ndarray

Transformation matrix from the space specified by xfm to MNI space.

Notes

Equivalent to cortex.mni.compute_mni_transform, but this function also caches the result (which is nice because computing it can be slow).