ras2vox_tkr: The FreeSurfer default ras2vox_tkr matrix.

Description Usage Value See Also Examples

View source: R/volume.R

Description

Applying this matrix to a FreeSurfer surface RAS coordinate (from a surface file like 'lh.white') will give you the voxel index (CRS) in a conformed FreeSurfer volume. The returned matrix is the inverse of the 'vox2ras_tkr' matrix.

Usage

1

Value

numeric 4x4 matrix, the FreeSurfer ras2vox_tkr matrix.

See Also

Other surface and volume coordinates: vox2ras_tkr()

Examples

1
2
3
4
   # Compute the FreeSurfer CRS voxel index of surface RAS coordinate (0.0, 0.0, 0.0):
   ras2vox_tkr() %*% c(0, 0, 0, 1);
   # Show that the voxel at surface RAS corrds (0.0, 0.0, 0.0) is the one with CRS (128, 128, 128):
   ras2vox_tkr() %*% c(0.0, 0.0, 0.0, 1);

fsbrain documentation built on Sept. 16, 2021, 5:07 p.m.