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
REGRESS THE AFFINE TRANSFORM BETWEEN SURFACES ON THE SAME MESH
   wb_command -surface-affine-regression
      <source> - the surface to warp
      <target> - the surface to match the coordinates of
      <affine-out> - output - the output affine file

      Use linear regression to compute an affine that minimizes the sum of
      squares of the coordinate differences between the target surface and the
      warped source surface.  Note that this has a bias to shrink the surface
      that is being warped.  The output is written as a NIFTI 'world' matrix,
      see -convert-affine to convert it for use in other software.