mghheader.ras2vox.tkreg: Compute ras2vox-tkreg matrix from basic MGH header fields.

Description Usage Arguments Value See Also Examples

View source: R/mghheader.R

Description

This is also known as the 'tkreg' ras2vox. It is the inverse of the respective vox2ras, see mghheader.vox2ras.tkreg.

Usage

1

Arguments

header

the MGH header

Value

4x4 numerical matrix, the transformation matrix

See Also

sm1to0

Other header coordinate space: mghheader.is.ras.valid(), mghheader.ras2vox(), mghheader.scanner2tkreg(), mghheader.tkreg2scanner(), mghheader.vox2ras.tkreg(), mghheader.vox2ras(), read.fs.transform.dat(), read.fs.transform.lta(), read.fs.transform.xfm(), read.fs.transform(), sm0to1(), sm1to0()

Examples

1
2
3
4
5
    brain_image = system.file("extdata", "brain.mgz",
                               package = "freesurferformats",
                               mustWork = TRUE);
    vdh = read.fs.mgh(brain_image, with_header = TRUE);
    mghheader.ras2vox.tkreg(vdh$header);

freesurferformats documentation built on May 25, 2021, 5:10 p.m.