Workbench Command is a set of command-line tools that can be used to perform simple and complex operations within Connectome Workbench.
MAP LABEL FILE TO VOLUME
wb_command -label-to-volume-mapping
<label> - the input label file
<surface> - the surface to use coordinates from
<volume-space> - a volume file in the desired output volume space
<volume-out> - output - the output volume file
[-nearest-vertex] - use the label from the vertex closest to the voxel
center
<distance> - how far from the surface to map labels to voxels, in mm
[-ribbon-constrained] - use ribbon constrained mapping algorithm
<inner-surf> - the inner surface of the ribbon
<outer-surf> - the outer surface of the ribbon
[-voxel-subdiv] - voxel divisions while estimating voxel weights
<subdiv-num> - number of subdivisions, default 3
[-greedy] - also put labels in voxels with less than 50% partial
volume (legacy behavior)
[-thick-columns] - use overlapping columns (legacy method)
Maps labels from a gifti label file into a volume file. You must specify
exactly one mapping method option. The -nearest-vertex method uses the
label from the vertex closest to the voxel center. The
-ribbon-constrained method uses the same method as in
-volume-to-surface-mapping, then uses the weights in reverse, with
popularity logic to decide on a label to use.