Description Usage Arguments Value Note Examples
View source: R/coords_to_talairach.R
Transform MNI305 coords (FreeSurfer fsaverage surface) to MNI152 coordinates.
1 2 3 4 5 6 | coord_MNI305_to_MNI152(
vertex_coords,
method = getOption("brainloc.method_MNI305_to_from_MNI152", default = "linear"),
surface = "orig",
fs_home = getOption("brainloc.fs_home", default = Sys.getenv("FREESURFER_HOME"))
)
|
vertex_coords |
|
method |
character string, the method to use to map from MNI305 to MNI152 along the way. One of "best_available", "regfusionr", and "linear". |
surface |
optional character string or |
fs_home |
optional character string, the path to the FREESURFER_HOME directory from which to load the surfaces from the 'surface' parameter. Only used if 'method' results in |
nx3
numerical matrix of MNI152 coords.
One can check that the results are okay by clicking a vertex in FreeView, using the displayed MNI305 coordinates as input to this function, and looking up the reported MNI152 coordinates at https://bioimagesuiteweb.github.io/webapp/mni2tal.html
.
1 2 3 4 5 6 | ## Not run:
# Get MNI152 coordinates for first 3 fsaverage lh vertices:
surf = freesurferformats::read.fs.surface("/opt/freesurfer/subjects/fsaverage/surf/lh.white");
coord_MNI305_to_MNI152(surf$vertices[1:3, ]);
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.