cortex.database.Database.save_xfm¶
- Database.save_xfm(subject: str, name: str, xfm: NDArray[floating], xfmtype: str = 'magnet', reference: str | None = None)[source]¶
Load a transform into the surface database. If the transform exists already, update it If it does not exist, copy the reference epi into the filestore and insert.
- Parameters:
- subjectstr
Name of the subject
- namestr
Name to identify the transform
- xfm(4,4) array
The affine transformation matrix
- xfmtypestr, optional
Type of the provided transform, either magnet space or coord space. Defaults to ‘magnet’.
- referencestr, optional
The nibabel-compatible reference image associated with this transform. Required if name not in database