View source: R/coords_to_fsaverage.R
colin27_coords_to_fsaverage | R Documentation |
Map Colin27 coords to fsaverage coords and vertices.
colin27_coords_to_fsaverage( coords, surface = "white", fs_home = Sys.getenv("FS_HOME"), silent = TRUE )
coords |
nx3 numeric matrix, the source RAS coordinates in the input image which must be in Colin27 space. The coords must be within the cortex, otherwise the mapping makes no sense and |
surface |
character string, the fsaverage surface (brain mesh) to load. Must be a valid FreeSurfer surface name like 'white', 'pial', 'orig, 'inflated'. |
fs_home |
character string, path to the FreeSurfer installation. Alternatively, a hemilist of |
silent |
logical, whether to suppress output messages in case of coords outside of cortex. |
named list with entries 'fsaverage_vertices': integer vector of fsaverage surface vertex indices, 'hemi': vector of hemi strings for the vertices, 'fsaverage_coords': nx3 numeric matrix of target coordinates, 'query_coords': copy of input parameter coords, 'query_voxels': the voxel indices at the query RAS coords.
See the more general function vol_coords_to_fsaverage
for more options.
Tim Schäfer for the R version, Wu Jianxiao and CBIG for the original Matlab version.
## Not run: c27_ras = c(60.0, 0.0, 10.0) res = colin27_coords_to_fsaverage(mni_ras, surface = "white"); res$fsaverage_vertices; ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.