mri_surf2surf function to resamples one cortical surface onto anotherR/mri_surf2surf.R
mri_surf2surf.RdThis function calls Freesurfer mri_surf2surf to
resample one cortical surface onto another
(character) vector of subject name
(character) vector of target subject name
(character) target file type, can be curv, paint (w), mgh, or nii
(character) source file type, can be curv or paint (w)
(character) output filename
(character) hemisphere to run statistics
(character) source file
(character path) if a different subjects directory
is to be used other than SUBJECTS_DIR from shell, it can be
specified here. Use with care as if the command fail, it may not reset
the SUBJECTS_DIR back correctly after the error
(character) additional options to mri_surf2surf
(logical) print diagnostic messages
Additional arguments to pass to system
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")
}