| read.fs.transform.xfm {freesurferformats} | R Documentation |
Load transformation matrix from an XFM file.
Description
Load transformation matrix from an XFM file.
Usage
read.fs.transform.xfm(filepath)
Arguments
filepath |
character string, the full path to the transform file. |
Value
4x4 numerical matrix, the transformation matrix
Note
Currently this function has been tested with linear transformation files only, all others are unsupported.
See Also
Other header coordinate space:
mghheader.is.ras.valid(),
mghheader.ras2vox.tkreg(),
mghheader.ras2vox(),
mghheader.scanner2tkreg(),
mghheader.tkreg2scanner(),
mghheader.vox2ras.tkreg(),
mghheader.vox2ras(),
read.fs.transform.dat(),
read.fs.transform.lta(),
read.fs.transform(),
sm0to1(),
sm1to0()
Examples
tf_file = system.file("extdata", "talairach.xfm",
package = "freesurferformats",
mustWork = TRUE);
transform = read.fs.transform.xfm(tf_file);
transform$matrix;
[Package freesurferformats version 0.1.18 Index]