Workbench Command is a set of command-line tools that can be used to perform simple and complex operations within Connectome Workbench.
DILATE A CIFTI FILE wb_command -cifti-dilate <cifti-in> - the input cifti file <direction> - which dimension to dilate along, ROW or COLUMN <surface-distance> - the distance to dilate on surfaces, in mm <volume-distance> - the distance to dilate in the volume, in mm <cifti-out> - output - the output cifti file [-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 [-bad-brainordinate-roi] - specify an roi of brainordinates to overwrite, rather than zeros <roi-cifti> - cifti dscalar or dtseries file, positive values denote brainordinates to have their values replaced [-nearest] - use nearest good value instead of a weighted average [-merged-volume] - treat volume components as if they were a single component [-legacy-mode] - use the math from v1.3.2 and earlier for weighted dilation For all data values designated as bad, if they neighbor a good value or are within the specified distance of a good value in the same kind of model, replace the value with a distance weighted average of nearby good values, otherwise set the value to zero. If -nearest is specified, it will use the value from the closest good value within range instead of a weighted average. When the input file contains label data, nearest dilation is used on the surface, and weighted popularity is used in the volume. The -*-corrected-areas options are intended for dilating on group average surfaces, but it is only an approximate correction for the reduction of structure in a group average surface. If -bad-brainordinate-roi is specified, all values, including those with value zero, are good, except for locations with a positive value in the ROI. If it is not specified, only values equal to zero are bad.