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
TRANSFORM AND RESAMPLE A VOLUME FILE
   wb_command -volume-resample
      <volume-in> - volume to resample
      <volume-space> - a volume file in the volume space you want for the
         output
      <method> - the resampling method
      <volume-out> - output - the output volume

      [-affine] - repeatable - add an affine transform
         <affine> - the affine file to use

         [-flirt] - MUST be used if affine is a flirt affine
            <source-volume> - the source volume used when generating the affine
            <target-volume> - the target volume used when generating the affine

      [-affine-series] - repeatable - add an independent affine per-frame
         <affine-series> - text file containing 12 or 16 numbers per line, each
            being a row-major flattened affine

         [-flirt] - MUST be used if the affines are flirt affines
            <source-volume> - the source volume used when generating the affine
            <target-volume> - the target volume used when generating the affine

      [-warp] - repeatable - add a nonlinear warpfield transform
         <warpfield> - the warpfield file

         [-fnirt] - MUST be used if using a fnirt warpfield
            <source-volume> - the source volume used when generating the
               warpfield

      Resample a volume file with an arbitrary list of transformations.  You
      may specify -affine, -warp, and -affine-series multiple times each, and
      they will be used in the order specified.  For instance, for rigid motion
      correction followed by nonlinear atlas registration, specify
      -affine-series first, then -warp.  The recommended methods are CUBIC
      (cubic spline) for most data, and ENCLOSING_VOXEL for label data.  The
      parameter <method> must be one of:

      CUBIC
      ENCLOSING_VOXEL
      TRILINEAR