Returns the cortical domain of each hemisphere of a bundled fsaverage
template: TRUE for cortex, FALSE for the non-cortical medial
wall. Pass it as cortex_mask to surface_figure or
render_surface_rgba so statistical colour never lands on the
medial wall.
Value
A named list with logical vectors "lh" and "rh",
one value per vertex of load_fsaverage for the same
density.
Details
The mask comes from FreeSurfer's Destrieux 2009 parcellation
(aparc.a2009s) of fsaverage5, as distributed by TemplateFlow:
every vertex except those labelled Medial_wall or Unknown.
This is the same domain as FreeSurfer's ?h.cortex.label up to the
parcellation's boundary. See system.file("extdata",
"PROVENANCE.md", package = "neurosurf").
Examples
# \donttest{
cortex <- load_fsaverage_cortex("fsaverage5")
mean(cortex$lh) # fraction of vertices that are cortex
#> [1] 0.9132982
# }