View source: R/resample_cifti_components.R
resample_cifti_components | R Documentation |
Performs spatial resampling of various CIFTI file components on
the cortical surface. (The subcortical data is not resampled here.)
GIFTI surface geometry files can additionally be included: see
surfL_original_fname
and surfR_original_fname
.
resample_cifti_components(
original_res = NULL,
resamp_res = NULL,
resamp_method = NULL,
areaL_original_fname = NULL,
areaR_original_fname = NULL,
areaL_target_fname = NULL,
areaR_target_fname = NULL,
cortexL_original_fname = NULL,
cortexR_original_fname = NULL,
cortexL_target_fname = NULL,
cortexR_target_fname = NULL,
ROIcortexL_original_fname = NULL,
ROIcortexR_original_fname = NULL,
ROIcortexL_target_fname = NULL,
ROIcortexR_target_fname = NULL,
sphereL_original_fname = NULL,
sphereR_original_fname = NULL,
sphereL_target_fname = NULL,
sphereR_target_fname = NULL,
surfL_original_fname = NULL,
surfR_original_fname = NULL,
surfL_target_fname = NULL,
surfR_target_fname = NULL,
read_dir = NULL,
write_dir = NULL
)
original_res |
The original resolution(s) of the CIFTI cortical surface(s). |
resamp_res |
Target resolution for resampling (number of cortical surface vertices per hemisphere). |
resamp_method |
While adaptive resampling is recommended for metric or label
data, it requires that Note that surfaces will resampled using barycentric resampling regardless of
|
areaL_original_fname , areaR_original_fname |
File paths to the surfaces
to use for vertex area correction during adaptive resampling. (Only used if
resampling with the adaptive method.) For resampling: the Workbench command for adaptive resampling requires the
target surfaces for area correction too. But to make the workflow easier,
For remapping: |
areaL_target_fname , areaR_target_fname |
File paths to the surfaces
to use for vertex area correction during adaptive resampling. (Only used if
resampling with the adaptive method.) |
cortexL_original_fname , cortexR_original_fname |
(Optional) File path of GIFTI data for [left/right] cortex to resample. |
cortexL_target_fname , cortexR_target_fname |
(Optional) File path to
save the resampled GIFTI data for [left/right] cortex as.
If NULL (default) and |
ROIcortexL_original_fname , ROIcortexR_original_fname |
(Optional) File
path of GIFTI ROI corresponding to |
ROIcortexL_target_fname , ROIcortexR_target_fname |
(Optional) File path
of to save the resampled GIFTI ROI corresponding to
|
surfL_original_fname |
(Optional) File path to a GIFTI surface geometry file representing the left cortex. |
surfR_original_fname |
(Optional) File path to a GIFTI surface geometry file representing the right cortex. |
surfL_target_fname |
(Optional) Where to save the resampled GIFTI surface geometry file representing the left cortex. |
surfR_target_fname |
(Optional) Where to save the resampled GIFTI surface geometry file representing the right cortex. |
read_dir |
Directory to append to the path of every file being read,
e.g.
|
write_dir |
Where should the separate files be placed?
|
Step 1: Generate spheres in the original and target resolutions Step 2: Use -metric-resample to resample surface/cortex files Step 3: Use -surface-resample to resample gifti files
A named character vector of file paths to each resampled file
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.