View source: R/coords_to_fsaverage.R
mni152_voxels_to_fsaverage | R Documentation |
The voxel indices are specific to the reference volume and thus this function is of limited use in general, but it serves as an example on how to achieve voxel mapping.
mni152_voxels_to_fsaverage( voxels, surface = "white", fs_home = Sys.getenv("FS_HOME"), silent = TRUE )
voxels |
integer nx3 matrix, the IJK voxel indices in the 256x256x256 cortex mask reference file, 1-based. |
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. |
see mni152_coords_to_fsaverage
The voxel indices used by this function are specific to the cortex mask reference volume, so it is preferable to use the function. However, the code of this function illustrates how to get the fsaverage coords based on the IJK voxel indices for your own image, so take it as a demo.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.