Load fsaverage std.8 surfaces packaged with neurosurf
Source:R/fetch_surfaces.R
load_fsaverage_std8.RdThis convenience helper loads the FreeSurfer fsaverage surfaces that ship
with neurosurf (the std.8 decimated variant) and returns them as
SurfaceGeometry objects.
Usage
load_fsaverage_std8(
surf = c("smoothwm", "pial", "inflated", "white", "sphere")
)Value
A named list with elements "lh" and "rh", each a
SurfaceGeometry instance for the requested surface type.
Examples
# \donttest{
fs <- load_fsaverage_std8("smoothwm")
#> loading /home/runner/work/_temp/Library/neurosurf/extdata/std.8_lh.smoothwm.asc
#> loading /home/runner/work/_temp/Library/neurosurf/extdata/std.8_rh.smoothwm.asc
if (interactive()) {
show_surface_plot(fs$lh, fs$rh, views = c("lateral", "medial"))
}
# }