mghheader.centervoxelRAS.from.firstvoxelRAS: Compute RAS coords of center voxel.

Description Usage Arguments Value

View source: R/mghheader.R

Description

Compute RAS coords of center voxel.

Usage

1

Arguments

header

Header of the mgh datastructure, as returned by read.fs.mgh. The 'c_r', 'c_a' and 'c_s' values in the header do not matter of course, they are what is computed by this function.

first_voxel_RAS

numerical vector of length 3, the RAS coordinate of the first voxel in the volume. The first voxel is the voxel with 'CRS=1,1,1' in R, or 'CRS=0,0,0' in C/FreeSurfer. This value is also known as *P0 RAS*.

Value

numerical vector of length 3, the RAS coordinate of the center voxel. Also known as *CRAS* or *center RAS*.


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