R/mghheader.R
mghheader.vox2ras.tkreg.Rd
This is also known as the 'tkreg' vox2ras. It is the inverse of the respective ras2vox, see mghheader.ras2vox.tkreg
.
mghheader.vox2ras.tkreg(header)
header | the MGH header |
---|
4x4 numerical matrix, the transformation matrix
Other header coordinate space:
mghheader.is.ras.valid()
,
mghheader.ras2vox.tkreg()
,
mghheader.ras2vox()
,
mghheader.scanner2tkreg()
,
mghheader.tkreg2scanner()
,
mghheader.vox2ras()
,
read.fs.transform.dat()
,
read.fs.transform.lta()
,
read.fs.transform.xfm()
,
read.fs.transform()
,
sm0to1()
,
sm1to0()
brain_image = system.file("extdata", "brain.mgz",
package = "freesurferformats",
mustWork = TRUE);
vdh = read.fs.mgh(brain_image, with_header = TRUE);
mghheader.vox2ras.tkreg(vdh$header);
#> [,1] [,2] [,3] [,4]
#> [1,] -1 0 0 128
#> [2,] 0 0 1 -128
#> [3,] 0 -1 0 128
#> [4,] 0 0 0 1