View source: R/read_fs_transform.R
| read.fs.transform.lta | R Documentation |
Load transformation matrix from a FreeSurfer linear transform array (LTA) file.
read.fs.transform.lta(filepath)
filepath |
character string, the full path to the transform file. |
4x4 numerical matrix, the transformation matrix
I found no spec for the LTA file format, only example files, so this function should be used with care. If you have a file that is not parsed correctly, please open an issue and attach it.
Other header coordinate space:
mghheader.is.ras.valid(),
mghheader.ras2vox(),
mghheader.ras2vox.tkreg(),
mghheader.scanner2tkreg(),
mghheader.tkreg2scanner(),
mghheader.vox2ras(),
mghheader.vox2ras.tkreg(),
read.fs.transform(),
read.fs.transform.dat(),
read.fs.transform.xfm(),
sm0to1(),
sm1to0()
tf_file = system.file("extdata", "talairach.lta",
package = "freesurferformats", mustWork = TRUE);
transform = read.fs.transform.lta(tf_file);
transform$matrix;
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.