Convenience wrapper around get_surface_template that
downloads (via TemplateFlow) the requested surface geometry and returns it
as a neurosurf::SurfaceGeometry object (or a left/right list).
Usage
load_surface_template(
template_id,
surface_type,
hemi = c("L", "R", "both"),
density = NULL,
resolution = NULL,
...
)Arguments
- template_id
Surface template identifier passed to TemplateFlow (e.g., "fsaverage", "fsaverage6", "fsLR").
- surface_type
Surface type (e.g., "white", "pial", "inflated", "midthickness").
- hemi
Hemisphere to load. One of "L", "R", or "both". If "both", a named list with elements
LandRis returned.- density
Optional surface density (TemplateFlow
densityargument).- resolution
Optional resolution string (TemplateFlow
resargument). LeaveNULLfor fsaverage surfaces, which TemplateFlow indexes bydensityonly (e.g.,"41k"for fsaverage6).- ...
Additional arguments forwarded to
get_surface_template.
Value
A neurosurf::SurfaceGeometry object when hemi is "L"
or "R"; a named list of two SurfaceGeometry objects when
hemi is "both".