View source: R/resample_cifti.R
resample_cifti | R Documentation |
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.)
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,
resamp_method = c("barycentric", "adaptive"),
areaL_original_fname = NULL,
areaR_original_fname = NULL,
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,
resamp_method = c("barycentric", "adaptive"),
areaL_original_fname = NULL,
areaR_original_fname = NULL,
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,
resamp_method = c("barycentric", "adaptive"),
areaL_original_fname = NULL,
areaR_original_fname = NULL,
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,
resamp_method = c("barycentric", "adaptive"),
areaL_original_fname = NULL,
areaR_original_fname = NULL,
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). |
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: |
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.
If surface data is included, it will be resampled with the barycentric
method even if resamp_method=="adaptive"
because the barycentric
method is recommended for surface geometry data.
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 manipulating xifti:
add_surf()
,
apply_parc()
,
apply_xifti()
,
combine_xifti()
,
convert_to_dlabel()
,
merge_xifti()
,
move_to_mwall()
,
move_to_submask()
,
newdata_xifti()
,
remap_cifti()
,
remove_xifti()
,
resample_cifti_from_template()
,
scale_xifti()
,
select_xifti()
,
set_names_xifti()
,
smooth_cifti()
,
transform_xifti()
Other common:
is.cifti()
,
read_cifti()
,
smooth_cifti()
,
view_xifti()
,
write_cifti()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.