Workbench Command is a set of command-line tools that can be used to perform simple and complex operations within Connectome Workbench.
REPORT LENGTH OF BORDERS wb_command -border-length <border> - the input border file <surface> - the surface to measure the borders on [-corrected-areas] - vertex areas to use instead of computing them from the surface <area-metric> - the corrected vertex areas, as a metric [-separate-pieces] - report lengths for multi-part borders as separate numbers [-hide-border-name] - don't print border name before each output For each border, print its length along the surface, in mm. If a border has multiple parts, their lengths are summed before printing, unless -separate-pieces is specified. The -corrected-areas option is intended for when the length is not meaningfully measurable on individual surfaces, it is only an approximate correction for the reduction in structure of a group average surface.