Using Workbench Command

Workbench Command is a set of command-line tools that can be used to perform simple and complex operations within Connectome Workbench.

Full Documentation:

Documentation Home
MAKE ROIS FROM ALL LABELS IN A VOLUME FRAME
   wb_command -volume-all-labels-to-rois
      <label-in> - the input volume label file
      <map> - the number or name of the label map to use
      <volume-out> - output - the output volume file

      The output volume has a frame for each label in the specified input
      frame, other than the ??? label, each of which contains an ROI of all
      voxels that are set to the corresponding label.