Dear all,

I am trying to calculate the distance from a reference vertex to all other vertices in a surface mesh (or ideally to a subset of vertices), moving along the actual surface (e.g. smoothwm). 

I am able to loop through the pairs of vertices in which I'm interested, using mris_pmake in each loop, but this is quite time consuming.  I have tried using '--mpmProg autodijk' as described in the mris_pmake help file, but have been unsuccessful at getting this command to work. 

The current code I am using for each pair is:

mris_pmake --subject <subject> --surface0 smoothwm --curv0 sulc --curv1 sulc --mpmOverlay euclidean --mpmProg pathFind --mpmArgs startVertex:###,endVertex:###

Any suggestions to cut down my processing time, while still calculating along the surface, would be greatly appreciated.

Andrew