Description Usage Arguments Details Value Connectome Workbench See Also
View source: R/resample_cifti.R
Performs spatial resampling of CIFTI data on the cortical surface by separating it into GIFTI and NIFTI files, resampling the GIFTIs, and then putting them together. (The subcortex is not resampled.)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | resample_cifti(
x = NULL,
cifti_target_fname = NULL,
surfL_original_fname = NULL,
surfR_original_fname = NULL,
surfL_target_fname = NULL,
surfR_target_fname = NULL,
resamp_res,
write_dir = NULL,
mwall_values = c(NA, NaN),
verbose = TRUE
)
resampleCIfTI(
x = NULL,
cifti_target_fname = NULL,
surfL_original_fname = NULL,
surfR_original_fname = NULL,
surfL_target_fname = NULL,
surfR_target_fname = NULL,
resamp_res,
write_dir = NULL,
mwall_values = c(NA, NaN),
verbose = TRUE
)
resamplecii(
x = NULL,
cifti_target_fname = NULL,
surfL_original_fname = NULL,
surfR_original_fname = NULL,
surfL_target_fname = NULL,
surfR_target_fname = NULL,
resamp_res,
write_dir = NULL,
mwall_values = c(NA, NaN),
verbose = TRUE
)
resample_xifti(
x = NULL,
cifti_target_fname = NULL,
surfL_original_fname = NULL,
surfR_original_fname = NULL,
surfL_target_fname = NULL,
surfR_target_fname = NULL,
resamp_res,
write_dir = NULL,
mwall_values = c(NA, NaN),
verbose = TRUE
)
|
x |
The CIFTI file name or |
cifti_target_fname |
File name for the resampled CIFTI. Will be placed
in |
surfL_original_fname, surfR_original_fname |
(Optional) Path to a GIFTI surface geometry file representing the left/right cortex. One or both can be provided. These will be resampled too, and are convenient for visualizing the resampled data. If |
surfL_target_fname, surfR_target_fname |
(Optional) File names for the
resampled GIFTI surface geometry files. Will be placed in |
resamp_res |
Target resolution for resampling (number of cortical surface vertices per hemisphere). |
write_dir |
Where to write the resampled CIFTI (and surfaces if present.)
If |
mwall_values |
If the medial wall locations are not indicated in the
CIFTI, use these values to infer the medial wall mask. Default:
Correctly indicating the medial wall locations is important for resampling, because the medial wall mask is taken into account during resampling calculations. |
verbose |
Should occasional updates be printed? Default: |
Can accept a "xifti"
object as well as a path to a CIFTI-file.
A named character vector of written files: "cifti"
and
potentially "surfL"
(if surfL_original_fname
was provided)
and/or "surfR"
(if surfR_original_fname
was provided).
This function interfaces with the "-metric-resample"
, "-label-resample"
,
and/or "-surface-resample"
Workbench commands, depending on the input.
Other commonly-used functions:
is.cifti()
,
read_cifti()
,
smooth_cifti()
,
view_xifti_surface()
,
view_xifti_volume()
,
write_cifti()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.