nifti_affine#
- mrinufft.io.utils.nifti_affine(twixObj)[source]#
Calculate the affine transformation matrix from Siemens Twix object.
- Parameters:
twixObj (twixObj) – The twix object returned by mapVBVD.
- Returns:
The affine transformation matrix which is a 4x4 matrix. This can be passed as input to affine parameter in nibabel.
- Return type:
np.ndarray