On 12/28/2010 12:20 PM, Vitaly Napadow wrote:
is there a command where i can input the two vertices and the output is separation distance?
Yes -- sort of. There is an app called 'mris_pmake' that calculates paths on FreeSurfer meshes based on Dijkstra's algorithm. Mesh edges can be arbitrarily weighed. It can be used in a mode where it is fed two vertex indices, and it calculates the shortest path across the mesh between then two (the edge cost function is set such that each edge weight is equal to the edge length). This is not the same as the geodesic distance, since 'mris_pmake' is constrained to run along the actual mesh, but can be a reasonable approximation. I can give you more info if you'd like. It was written for a different, batch-orientated purpose, but can be used in this way. It's been in dev/alpha status for more than a year or so, so it does need some handholding to run.
-=R