We have a couple of commands you can use to do this:
:~$ wb_command -surface-geodesic-distance
COMPUTE GEODESIC DISTANCE FROM ONE VERTEX TO THE ENTIRE SURFACE
/home/brainmappers/workbench/fetchdir/wb_command
-surface-geodesic-distance
<surface>
<vertex>
<metric-out>
[-naive]
[-limit]
<limit-mm>
Unless -limit is specified, computes the geodesic distance from the
specified vertex to all others. The result is output as a single
column
metric file, with a value of -1 for vertices that the distance was
not
computed for. If -naive is not specified, it uses not just immediate
neighbors, but also neighbors derived from crawling across pairs of
triangles that share an edge.
Descriptions of parameters and options:
<surface> - the surface to compute on
<vertex> - the vertex to compute geodesic distance from
<metric-out> - output - the output metric
[-naive] - use only neighbors, don't crawl triangles (not
recommended)
[-limit] - stop at a certain distance
<limit-mm> - distance in mm to stop at
:~$ wb_command -surface-closest-vertex
FIND CLOSEST SURFACE VERTEX TO COORDINATES
/home/brainmappers/workbench/fetchdir/wb_command -surface-closest-vertex
<surface>
<coord-list-file>
<vertex-list-out>
For each coordinate XYZ triple, find the closest vertex in the
surface,
and output its vertex number into a text file.
Descriptions of parameters and options:
<surface> - the surface to use
<coord-list-file> - text file with coordinates
<vertex-list-out> - output - the output text file with vertex numbers
Peace,
Matt.
On 11/6/13 9:14 PM, "David R. Haynor" <[email protected]> wrote:
>hi hcp-users,
>
>is there a relatively easy way to get an estimate of the distance *on the
>pial surface* of two voxels that are on the surface? i.e. i want the
>distance on the cortical sheet, not the 3D distance through space.
>
>thanks.
>
>-dh
>
>_______________________________________________
>HCP-Users mailing list
>[email protected]
>http://lists.humanconnectome.org/mailman/listinfo/hcp-users
________________________________
The materials in this message are private and may contain Protected Healthcare
Information or other information of a sensitive nature. If you are not the
intended recipient, be advised that any unauthorized use, disclosure, copying
or the taking of any action in reliance on the contents of this information is
strictly prohibited. If you have received this email in error, please
immediately notify the sender via telephone or return mail.
_______________________________________________
HCP-Users mailing list
[email protected]
http://lists.humanconnectome.org/mailman/listinfo/hcp-users