R/mghheader.R
ras.to.surfaceras.Rd
Translate RAS coordinates, as used in volumes by applying vox2ras, to surface RAS.
ras.to.surfaceras(header_cras, ras_coords, first_voxel_RAS = c(1, 1, 1))
header_cras | an MGH header instance from which to extract the cras (center RAS), or the cras vector, i.e., a numerical vector of length 3 |
---|---|
ras_coords | nx3 numerical vector, the input surface RAS coordinates. Could be the vertex coordinates of an 'fs.surface' instance, or the RAS coords from a surface label. |
first_voxel_RAS | the RAS of the first voxel, see |
the surface RAS coords for the input RAS coords
The RAS can be computed from Surface RAS by adding the center RAS coordinates, i.e., it is nothing but a translation.