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
DO A VECTOR OPERATION ON VOLUME FILES
   wb_command -volume-vector-operation
      <vectors-a> - first vector input file
      <vectors-b> - second vector input file
      <operation> - what vector operation to do
      <volume-out> - output - the output file

      [-normalize-a] - normalize vectors of first input

      [-normalize-b] - normalize vectors of second input

      [-normalize-output] - normalize output vectors (not valid for dot
         product)

      [-magnitude] - output the magnitude of the result (not valid for dot
         product)

      Does a vector operation on two volume files (that must have a multiple of
      3 subvolumes).  Either of the inputs may have multiple vectors (more than
      3 subvolumes), but not both (at least one must have exactly 3
      subvolumes).  The -magnitude and -normalize-output options may not be
      specified together, or with the DOT operation.  The <operation> parameter
      must be one of the following:

      DOT
      CROSS
      ADD
      SUBTRACT