coord_closest_vertex: Find closest surface vertex to a point, using Euclidean...

View source: R/fsaverage_to_coords.R

coord_closest_vertexR Documentation

Find closest surface vertex to a point, using Euclidean distance.

Description

Find closest surface vertex to a point, using Euclidean distance.

Usage

coord_closest_vertex(coordinate, surfaces)

Arguments

coordinate

nx3 numerical matrix or vector of length 3, the query point coordinates.

surfaces

hemilist of fs.surface instances

Value

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'.


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