Workbench Command is a set of command-line tools that can be used to perform simple and complex operations within Connectome Workbench.
GEODESIC DISTANCE TO ROI
wb_command -surface-geodesic-distance-to-roi
<surface> - the surface to compute on
<roi> - the ROI(s), as a metric file
<metric-out> - output - the output metric
[-column] - select a single ROI column
<column> - the column number or name
[-negatives-inside] - also compute negative distances from the inverted
ROI, instead of putting zeros in the ROI - NOTE: this is not a true
signed distance
[-naive] - use only neighbors, don't crawl triangles (not recommended)
For each vertex, find the shortest geodesic distance to a vertex in the
ROI. Each map of <roi> is treated as a single binary class, even if it
is discontiguous. ROIs that should have distances measured separately
should be separate maps.