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 /private/var/folders/9h/nkjq6vss7mqdl4ck7q1hd8ph0000gp/T/Rtmp0Nbniq/temp_libpath80e31f94425b/neurosurf/extdata/std.8_lh.smoothwm.asc
#> loading /private/var/folders/9h/nkjq6vss7mqdl4ck7q1hd8ph0000gp/T/Rtmp0Nbniq/temp_libpath80e31f94425b/neurosurf/extdata/std.8_rh.smoothwm.asc
show_surface_plot(fs$lh, fs$rh, views = c("lateral", "medial"))
#> Warning: no non-missing arguments to min; returning Inf
#> Warning: no non-missing arguments to max; returning -Inf
#> Warning: no non-missing arguments to min; returning Inf
#> Warning: no non-missing arguments to max; returning -Inf
#> Warning: no non-missing arguments to min; returning Inf
#> Warning: no non-missing arguments to max; returning -Inf
#> Warning: no non-missing arguments to min; returning Inf
#> Warning: no non-missing arguments to max; returning -Inf
# }