Workbench Command is a set of command-line tools that can be used to perform simple and complex operations within Connectome Workbench.
COMPUTE DOT PRODUCTS OF FIBER ORIENTATIONS WITH SURFACE NORMALS wb_command -fiber-dot-products <white-surf> - the white/gray boundary surface <fiber-file> - the fiber orientation file <max-dist> - the maximum distance from any surface vertex a fiber population may be, in mm <direction> - test against surface for whether a fiber population should be used <dot-metric> - output - the metric of dot products <f-metric> - output - a metric of the f values of the fiber distributions For each vertex, this command finds the closest fiber population that satisfies the <direction> test, and computes the absolute value of the dot product of the surface normal and the normalized mean direction of each fiber. The <direction> test must be one of INSIDE, OUTSIDE, or ANY, which causes the command to only use fiber populations that are inside the surface, outside the surface, or to not care which direction it is from the surface. Each fiber population is output in a separate metric column.