For each region in an atlas, compute the outer border and color the respective vertices in the region-specific color from the annot's colortable.
annot.outline(
annotdata,
surface_mesh,
background = "white",
silent = TRUE,
expand_inwards = 0L,
outline_color = NULL,
limit_to_regions = NULL
)
vector of colors, one color for each mesh vertex
an annotation, as returned by functions like subject.annot
. If a character string, interpreted as a path to a file containing such data, and loaded with freesurferformats::read.fs.annot
brain surface mesh, as returned by functions like subject.surface
or read.fs.surface
. If a character string, interpreted as a path to a file containing such data, and loaded with freesurferformats::read.fs.surface
color, the background color to assign to the non-border parts of the regions. Defaults to 'white'.
logical, whether to suppress status messages.
integer, additional thickness of the borders. Increases computation time, defaults to 0L.
NULL or a color string (like 'black' or '#000000'), the color to use for the borders. If left at the default value `NULL`, the colors from the annotation color lookup table will be used.
vector of character strings or NULL, a list of regions for which to draw the outline (see get.atlas.region.names
). If NULL, all regions will be used. If (and only if) this parameter is used, the 'outline_color' parameter can be a vector of color strings, one color per region.