Learn R Programming

freesurferformats (version 1.0.2)

read.fs.transform.dat: Load transformation matrix from a tkregister dat file.

Description

Load transformation matrix from a tkregister dat file.

Usage

read.fs.transform.dat(filepath)

Value

4x4 numerical matrix, the transformation matrix

Arguments

filepath

character string, the full path to the transform file.

See Also

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.lta(), read.fs.transform.xfm(), sm0to1(), sm1to0()

Examples

Run this code
tf_file <- system.file("extdata", "register.dat",
  package = "freesurferformats",
  mustWork = TRUE
)
transform <- read.fs.transform.dat(tf_file)
transform$matrix

Run the code above in your browser using DataLab