geod.patches.pervertexdata | R Documentation |
Works across hemispheres (for a whole brain) if you pass a hemilist
of meshes as parameter 'mesh', see below.
geod.patches.pervertexdata(mesh, vertex, ...)
mesh |
a single |
vertex |
positive integer (or vector of the latter), the index of the source vertex in the mesh. If a vector, the neighborhoods for all vertices will be computed separately. |
... |
extra arguments passed to |
vector of doubles (or a hemilist
of 2 such vectors if 'mesh' is a hemilist), the per-vertex distance data. Data for vertices outside neighborhoods will be NA.
## Not run:
sjd = fsaverage.path(TRUE);
surfaces = subject.surface(sjd, 'fsaverage',
surface = "white", hemi = "both");
res = geod.patches.pervertexdata(surfaces,
vertex = c(12345L, 45L),
max_distance = 25.0);
# res$lh and res$rh now hold the per-vertex data.
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.