mni305_coords_to_colin27_coords: Find Colin27 coordinate of fsaverage vertex closest to the...

View source: R/fsaverage_to_coords.R

mni305_coords_to_colin27_coordsR Documentation

Find Colin27 coordinate of fsaverage vertex closest to the given MNI305 coordinate.

Description

Find Colin27 coordinate of fsaverage vertex closest to the given MNI305 coordinate.

Usage

mni305_coords_to_colin27_coords(
  coords,
  surface = "orig",
  fs_home = Sys.getenv("FS_HOME"),
  simplify = FALSE
)

Arguments

coords

nx3 numerical matrix, the MNI305 query coordinates.

surface

a character string defining the fsaverage surface to load (like "white" or "orig"), or a pre-loaded hemilist of surfaces (i.e., freesurferformats::fs.surface instances)

fs_home

character string, path of the FreeSurfer directory from which the fsaverage surfaces should be loaded. Ignored if surface is a hemilist (in that case the surfaces have already been loaded).

simplify

logical, whether to return a vector instead of a single-row matrix in case only a single query vertex is given.

Value

nx3 numerical matrix, the Colin27 coordinates for the vertices closest to the given MNI305 query coordinates. Depending on the distance to the closest vertex, this may be way off. Also see the 'simplify' parameter.


dfsp-spirit/regfusionr documentation built on Sept. 4, 2022, 9:32 a.m.