Description Usage Arguments Value Examples
View source: R/closest_atlas_regions.R
Find closest surface vertex to a point, using Euclidean distance.
1 | coord_closest_vertex(coordinate, surfaces)
|
coordinate |
|
surfaces |
|
a data.frame with columns named 'query_x', 'query_y', 'query_z', 'lh_closest_vertex', 'lh_distance', 'rh_closest_vertex', 'rh_distance', 'both_closest_vertex', 'both_distance', 'both_hemi'.
1 2 3 4 5 6 | ## Not run:
bp = brainparc_fs(fsbrain::fsaverage.path(), "fsaverage", atlas="aparc");
query_coords = matrix(seq.int(9), ncol = 3, byrow = TRUE);
coord_closest_vertex(query_coords, bp$surfaces$white);
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.