mri_surf2surf
function to
resamples one cortical surface onto anotherR/mri_surf2surf.R
mri_surf2surf.Rd
This function calls Freesurfer mri_surf2surf
to
resample one cortical surface onto another
mri_surf2surf(
subject = NULL,
target_subject = NULL,
trg_type = c("curv", "w", "mgh", "nii"),
src_type = c("curv", "w"),
outfile = NULL,
hemi = c("lh", "rh"),
sval = c("thickness"),
subj_dir = NULL,
opts = "",
verbose = TRUE
)
subject | (character) vector of subject name |
---|---|
target_subject | (character) vector of target subject name |
trg_type | (character) target file type, can be curv, paint (w), mgh, or nii |
src_type | (character) source file type, can be curv or paint (w) |
outfile | (character) output filename |
hemi | (character) hemisphere to run statistics |
sval | (character) source file |
subj_dir | (character path) if a different subjects directory
is to be used other than |
opts | (character) additional options to |
verbose | (logical) print diagnostic messages |
Name of output file
if (have_fs()) {
out = mri_surf2surf(
subject = 'bert',
target_subject = 'fsaverage',
trg_type = 'curv',
src_type = 'curv',
hemi = "rh",
sval = "thickness")
}