Resample a CIFTI from a template CIFTI using the -cifti-resample
Connectome Workbench command.
resample_cifti_from_template(
original_fname,
template_fname,
target_fname,
wb_path = NULL
)
A CIFTI file to resample.
A CIFTI file to use as the template.
The file name to save the resampled CIFTI.
(Optional) Path to Connectome Workbench folder or executable.
If not provided, should be set with
ciftiTools.setOption("wb_path", "path/to/workbench")
.
The target_fname
, invisibly
This function uses a system wrapper for the 'wb_command' executable. The
user must first download and install the Connectome Workbench, available
from https://www.humanconnectome.org/software/get-connectome-workbench .
The wb_path
argument is the full file path to the Connectome
Workbench folder. (The full file path to the 'wb_cmd' executable also
works.)