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

View source: R/read_fs_transform.R

read.fs.transform.datR Documentation

Load transformation matrix from a tkregister dat file.

Description

Load transformation matrix from a tkregister dat file.

Usage

read.fs.transform.dat(filepath)

Arguments

filepath

character string, the full path to the transform file.

Value

4x4 numerical matrix, the transformation matrix

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

Examples

    tf_file = system.file("extdata", "register.dat",
                               package = "freesurferformats",
                               mustWork = TRUE);
    transform = read.fs.transform.dat(tf_file);
    transform$matrix;


freesurferformats documentation built on May 29, 2024, 5:29 a.m.