View source: R/vol_to_fsaverage.R
vol_to_fsaverage | R Documentation |
Applies the Wu et al. regfusion method to obtain surface coords, then interpolates values.
vol_to_fsaverage( input_img, template_type, rf_type = "RF_ANTs", interp = "linear", out_type = "curv", out_dir = "." )
input_img |
3D or 4D NIFTI or MGZ image instance of type |
template_type |
character string, the source template or the space that your input image is in. One of 'MNI152_orig', 'Colin27_orig', 'MNI152_norm', 'Colin27_norm'. |
rf_type |
the regfusion type to use, one of 'RF_ANTs' or 'RF_M3Z'. |
interp |
interpolation method, currently only 'linear' is supported. |
out_type |
character string, the format of the output files. One of the following: 'curv' for FreeSurfer curv format, 'mgz' for FreeSurfer MGZ format, 'gii' for GIFTI format. |
out_dir |
character string, the path to a writable output directory. If |
named list of 2 character strings, the output files (for the 2 hemispheres) at keys 'lh' and 'rh'. See the documentation for parameter 'out_dir' if you want the data in R instead.
Tim Schäfer for the R version, Wu Jianxiao and CBIG for the original Matlab version.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.