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
SPATIAL STATISTICS ON A VOLUME FILE
   wb_command -volume-stats
      <volume-in> - the input volume

      [-reduce] - use a reduction operation
         <operation> - the reduction operation

      [-percentile] - give the value at a percentile
         <percent> - the percentile to find

      [-subvolume] - only display output for one subvolume
         <subvolume> - the subvolume number or name

      [-roi] - only consider data inside an roi
         <roi-volume> - the roi, as a volume file

         [-match-maps] - each subvolume of input uses the corresponding
            subvolume from the roi file

      [-show-map-name] - print map index and name before each output

      For each subvolume of the input, a single number is printed, resulting
      from the specified reduction or percentile operation.  Use -subvolume to
      only give output for a single subvolume.  Use -roi to consider only the
      data within a region.  Exactly one of -reduce or -percentile must be
      specified.

      The argument to the -reduce option must be one of the following:

      MAX: the maximum value
      MIN: the minimum value
      INDEXMAX: the 1-based index of the maximum value
      INDEXMIN: the 1-based index of the minimum value
      SUM: add all values
      PRODUCT: multiply all values
      MEAN: the mean of the data
      STDEV: the standard deviation (N denominator)
      SAMPSTDEV: the sample standard deviation (N-1 denominator)
      VARIANCE: the variance of the data
      TSNR: mean divided by sample standard deviation (N-1 denominator)
      COV: sample standard deviation (N-1 denominator) divided by mean
      L2NORM: square root of sum of squares
      MEDIAN: the median of the data
      MODE: the mode of the data
      COUNT_NONZERO: the number of nonzero elements in the data