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
REMOVE ISLANDS FROM AN ROI VOLUME
   wb_command -volume-remove-islands
      <volume-in> - the input ROI volume
      <volume-out> - output - the output ROI volume

      Finds all face-connected parts of the ROI, and zeros out all but the
      largest one.