Workbench Command is a set of command-line tools that can be used to perform simple and complex operations within Connectome Workbench.
RESAMPLE A LABEL FILE TO A DIFFERENT MESH
wb_command -label-resample
<label-in> - the label file to resample
<current-sphere> - a sphere surface with the mesh that the label file is
currently on
<new-sphere> - a sphere surface that is in register with <current-sphere>
and has the desired output mesh
<method> - the method name
<label-out> - output - the output label file
[-area-surfs] - specify surfaces to do vertex area correction based on
<current-area> - a relevant anatomical surface with <current-sphere>
mesh
<new-area> - a relevant anatomical surface with <new-sphere> mesh
[-area-metrics] - specify vertex area metrics to do area correction based
on
<current-area> - a metric file with vertex areas for <current-sphere>
mesh
<new-area> - a metric file with vertex areas for <new-sphere> mesh
[-current-roi] - use an input roi on the current mesh to exclude non-data
vertices
<roi-metric> - the roi, as a metric file
[-valid-roi-out] - output the ROI of vertices that got data from valid
source vertices
<roi-out> - output - the output roi as a metric
[-largest] - use only the label of the vertex with the largest weight
[-bypass-sphere-check] - ADVANCED: allow the current and new 'spheres' to
have arbitrary shape as long as they follow the same contour
Resamples a label file, given two spherical surfaces that are in
register. If ADAP_BARY_AREA is used, exactly one of -area-surfs or
-area-metrics must be specified.
The ADAP_BARY_AREA method is recommended for label data, because it
should be better at resolving vertices that are near multiple labels, or
in case of downsampling. Midthickness surfaces are recommended for the
vertex areas for most data.
The -largest option results in nearest vertex behavior when used with
BARYCENTRIC, as it uses the value of the source vertex that has the
largest weight.
When -largest is not specified, the vertex weights are summed according
to which label they correspond to, and the label with the largest sum is
used.
The <method> argument must be one of the following:
ADAP_BARY_AREA
BARYCENTRIC