write_ants_transform stores a \(4\times 4\) RAS-to-RAS
affine (such as the transform returned by
register_volume3d) as an 'ITK' .mat file (a
'MATLAB' level-5 binary, LPS convention) compatible with
antsApplyTransforms. read_ants_transform reads such a file back
into a \(4\times 4\) RAS matrix. The reader folds a non-zero
ITK center of rotation into the translation, so transforms written by
'ANTs' are read correctly.
Value
write_ants_transform returns file invisibly;
read_ants_transform returns a \(4\times 4\) RAS matrix.