Get per-vertex data at vertices closest to the given query coordinates on the mesh.
Source:R/kdtree.R
nn_interpolate_kdtree.RdReturn per-vertex data at the vertices closest to the given query points.
Arguments
- query_coordinates
nx3 numerical matrix of x,y,z coordinates. These are typically the vertex positions of a second (spherical!) mesh for that you need per-vertex data (e.g., the
fsaverage6mesh).- mesh
fs.surface instance, see
read.fs.surfaceorsubject.surfaceto get one, or turn anrgltmeshinto one withtmesh3d.to.fs.surface.- pervertex_data
numerical vector, the continuous per-vertex data for the vertices of the mesh.