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
TAKE GRADIENT OF A CIFTI FILE
   wb_command -cifti-gradient
      <cifti> - the input cifti
      <direction> - which dimension to take the gradient along, ROW or COLUMN
      <cifti-out> - output - the output cifti

      [-left-surface] - specify the left surface to use
         <surface> - the left surface file

         [-left-corrected-areas] - vertex areas to use instead of computing
            them from the left surface
            <area-metric> - the corrected vertex areas, as a metric

      [-right-surface] - specify the right surface to use
         <surface> - the right surface file

         [-right-corrected-areas] - vertex areas to use instead of computing
            them from the right surface
            <area-metric> - the corrected vertex areas, as a metric

      [-cerebellum-surface] - specify the cerebellum surface to use
         <surface> - the cerebellum surface file

         [-cerebellum-corrected-areas] - vertex areas to use instead of
            computing them from the cerebellum surface
            <area-metric> - the corrected vertex areas, as a metric

      [-surface-presmooth] - smooth on the surface before computing the
         gradient
         <surface-kernel> - the size of the gaussian surface smoothing kernel
            in mm, as sigma by default

      [-volume-presmooth] - smooth on the surface before computing the gradient
         <volume-kernel> - the size of the gaussian volume smoothing kernel in
            mm, as sigma by default

      [-presmooth-fwhm] - smoothing kernel sizes are FWHM, not sigma

      [-average-output] - output the average of the gradient magnitude maps
         instead of each gradient map separately

      [-vectors] - output gradient vectors
         <vectors-out> - output - the vectors, as a dscalar file

      Performs gradient calculation on each component of the cifti file, and
      optionally averages the resulting gradients.  The -vectors and
      -average-output options may not be used together.  You must specify a
      surface for each surface structure in the cifti file.  The COLUMN
      direction should be faster, and is the direction that works on dtseries.
      For dconn, you probably want ROW, unless you are using -average-output.