Skip to contents

get_roi() method for surface atlases (class surfatlas, e.g. from get_wang_atlas, glasser_surf, or schaefer_surf). It returns one ROISurface per matched region, carrying the mesh vertices of that area on the appropriate hemisphere.

Because a surface atlas stores each hemisphere on its own mesh, a label present in both hemispheres yields one ROI per hemisphere, named "<label>_left" / "<label>_right"; pass hemi to restrict. When selecting by id, results are named by id (ids are unique across hemispheres: 1..K left, K+1..2K right).

Usage

# S3 method for class 'surfatlas'
get_roi(x, label = NULL, id = NULL, hemi = NULL)

Arguments

x

A surface atlas (class surfatlas).

label, id

Character labels or integer ids identifying regions; supply exactly one.

hemi

Optional "left" / "right" filter.

Value

A named list of ROISurface objects.

See also