sm0to1: Adapt spatial transformation matrix for 1-based indices.

View source: R/mghheader.R

sm0to1R Documentation

Adapt spatial transformation matrix for 1-based indices.

Description

Adapt spatial transformation matrix for 1-based indices.

Usage

sm0to1(tf_matrix)

Arguments

tf_matrix

4x4 numerical matrix, the input spatial transformation matrix, suitable for 0-based indices. Typically this is a vox2ras matrix obtained from functions like mghheader.vox2ras.

Value

4x4 numerical matrix, adapted spatial transformation matrix, suitable for 1-based indices.

See Also

sm1to0 for the inverse operation

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


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