Learn R Programming

fsbrain (version 0.1.0)

annot.outline: Compute outline vertex colors from annotation.

Description

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.

Usage

annot.outline(
  annotdata,
  surface_mesh,
  background = "white",
  silent = TRUE,
  expand_inwards = 0L
)

Arguments

annotdata

an annotation, as returned by functions like subject.annot.

surface_mesh

brain surface mesh, as returned by functions like subject.surface or read.fs.surface.

background

color, the background color to assign to the non-border parts of the regions. Defaults to 'white'.

silent

logical, whether to suppress status messages.

expand_inwards

integer, additional thickness of the borders. Increases computation time, defaults to 0L.

Value

vector of colors, one color for each mesh vertex