resample_gifti {ciftiTools} | R Documentation |
Resample a GIFTI file (with its ROI)
Description
Perform spatial resampling of GIFTI data on the cortical surface (metric and label), or of GIFTI surface geometry data itself.
Usage
resample_gifti(
original_fname,
target_fname,
hemisphere = c("left", "right"),
file_type = NULL,
original_res = NULL,
resamp_res = NULL,
resamp_method = c("barycentric", "adaptive"),
area_original_fname = NULL,
area_target_fname = NULL,
ROIcortex_original_fname = NULL,
ROIcortex_target_fname = NULL,
sphere_original_fname = NULL,
sphere_target_fname = NULL,
read_dir = NULL,
write_dir = NULL
)
resampleGIfTI(
original_fname,
target_fname,
hemisphere,
file_type = NULL,
original_res = NULL,
resamp_res,
ROIcortex_original_fname = NULL,
ROIcortex_target_fname = NULL,
read_dir = NULL,
write_dir = NULL
)
resamplegii(
original_fname,
target_fname,
hemisphere,
file_type = NULL,
original_res = NULL,
resamp_res,
ROIcortex_original_fname = NULL,
ROIcortex_target_fname = NULL,
read_dir = NULL,
write_dir = NULL
)
Arguments
original_fname |
The GIFTI file to resample. |
target_fname |
Where to save the resampled file. |
hemisphere |
|
file_type |
|
original_res |
The resolution of the original file. If In general, |
resamp_res |
Target resolution for resampling (number of
cortical surface vertices per hemisphere). Alternatively, provide
In general, |
resamp_method |
While adaptive resampling is recommended for metric or label
data, it requires that |
area_original_fname , area_target_fname |
File paths to the surfaces to
use for vertex area correction during adaptive resampling. (Ignored if
resampling with the barycentric method.) |
ROIcortex_original_fname |
The name of the ROI file corresponding to
|
ROIcortex_target_fname |
The name of the resampled ROI file. Only
applicable if |
sphere_original_fname , sphere_target_fname |
File paths to the sphere
surfaces in the original and target resolutions. If possible, the simpler
arguments |
read_dir |
Directory to append to the path of every file name in
|
write_dir |
Directory to append to the path of every file name in
|
Value
The resampled GIFTI file name, invisibly
Connectome Workbench
This function interfaces with the "-metric-resample"
, "-label-resample"
,
and/or "-surface-resample"
Workbench commands, depending on the input.
See Also
Other gifting:
remap_gifti()
,
smooth_gifti()