parc_borders {ciftiTools}R Documentation

Parcellation borders

Description

Identify vertices which lie on the border of different parcels.

Usage

parc_borders(parc, surf = NULL, hemisphere = c("left", "right"))

Arguments

parc

Integer vector the same length as the number of vertices. Each entry indicates the parcel that vertex belongs to.

surf

The surface which the vertices belong to, or just the "faces" component (F \times 3 matrix where each row indicates the vertices which comprise a face). If not provided, the (resampled) default hemisphere surface included with ciftiTools will be used.

hemisphere

Only used to choose which default surface to use if is.null(surf). Should be "left" (default) or "right".

Value

Logical vector the same length as parc indicating if the vertex lies on a border.

See Also

Other parcellation-related: apply_parc(), load_parc(), load_sub_parc(), parc_add_subcortex(), parc_vals_to_xifti()


[Package ciftiTools version 0.15.1 Index]