Compute RAS coords of center voxel.
Source:R/mghheader.R
mghheader.centervoxelRAS.from.firstvoxelRAS.RdCompute RAS coords of center voxel.
Arguments
- header
Header of the mgh datastructure, as returned by
read.fs.mgh. Thec_r,c_aandc_svalues 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,1in R, orCRS=0,0,0in C/FreeSurfer. This value is also known as P0 RAS.