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
ERODE A VOLUME FILE
   wb_command -volume-erode
      <volume> - the volume to erode
      <distance> - distance in mm to erode
      <volume-out> - output - the output volume

      [-roi] - assume voxels outside this roi are nonzero
         <roi-volume> - volume file, positive values denote voxels that have
            data

      [-subvolume] - select a single subvolume to dilate
         <subvol> - the subvolume number or name

      Around each voxel with a value of zero, set surrounding voxels to zero.
      The surrounding voxels are all face neighbors and all voxels within the
      specified distance (center to center).