Workbench does this internally, but it doesn't currently have a command to
output it (the number of neighbors varies per vertex, so it could be hard
to make efficient use of in something like matlab).  The .surf.gii file has
this information in it, in the triangles array, so if you load it, you just
have to build a lookup based on that.  Each triple in the triangles array
is the vertices of a single triangle.

When we use neighbor information (things like gradient, where it needs to
respond to as small a local neighborhood as possible), we also take the
length of each edge and/or coordinates of each neighbor into account, since
the triangles don't have to be close to equilateral.  If we are doing
something that uses larger spatial extent (smoothing), we instead use
geodesic distances rather than single-hop neighbors, so that we get
circular ROIs with distance information, regardless of the mesh topology.
This is exposed for a single vertex at a time via wb_command
-surface-geodesic-distance (the full matrix would be large and takes a
while to compute, but it can be added if it would be sufficiently useful).

Tim


On Wed, Feb 28, 2018 at 1:22 PM, Shankar Tumati <shankar.tum...@theroyal.ca>
wrote:

> Hello experts,
>
> I would like to get a list of neighbors of each vertex in a 32k surface
> file. How can I do this with workbench? If not with workbench, is there
> another way to get this info?
>
> Thank you.
>
> Best,
> Shankar
> _______________________________________________
> HCP-Users mailing list
> HCP-Users@humanconnectome.org
> http://lists.humanconnectome.org/mailman/listinfo/hcp-users
>

_______________________________________________
HCP-Users mailing list
HCP-Users@humanconnectome.org
http://lists.humanconnectome.org/mailman/listinfo/hcp-users

Reply via email to