Workbench Command is a set of command-line tools that can be used to perform simple and complex operations within Connectome Workbench.
CHANGE VOLUME SPACE INFORMATION
wb_command -volume-set-space
<volume-in> - the input volume
<volume-out> - output - the output volume
[-plumb] - set via axis order and spacing/offset
<axis-order> - a string like 'XYZ' that specifies which index is along
which spatial dimension
<x-spacing> - change in x-coordinate from incrementing the relevant
index
<y-spacing> - change in y-coordinate from incrementing the relevant
index
<z-spacing> - change in z-coordinate from incrementing the relevant
index
<x-offset> - the x-coordinate of the first voxel
<y-offset> - the y-coordinate of the first voxel
<z-offset> - the z-coordinate of the first voxel
[-sform] - set via a nifti sform
<xi-spacing> - increase in x coordinate from incrementing the i index
<xj-spacing> - increase in x coordinate from incrementing the j index
<xk-spacing> - increase in x coordinate from incrementing the k index
<x-offset> - x coordinate of first voxel
<yi-spacing> - increase in y coordinate from incrementing the i index
<yj-spacing> - increase in y coordinate from incrementing the j index
<yk-spacing> - increase in y coordinate from incrementing the k index
<y-offset> - y coordinate of first voxel
<zi-spacing> - increase in z coordinate from incrementing the i index
<zj-spacing> - increase in z coordinate from incrementing the j index
<zk-spacing> - increase in z coordinate from incrementing the k index
<z-offset> - z coordinate of first voxel
[-file] - copy spacing info from volume file with matching dimensions
<volume-ref> - volume file to use for reference space
[-ignore-dims] - copy the spacing info even if the dimensions don't
match
Writes a copy of the volume file, with the spacing information changed as
specified. No reordering of the voxel data occurs, see -volume-reorient
to change the volume indexing order and reorder the voxels to match.
Exactly one of -plumb, -sform, or -file must be specified.