boundary_mask_surf: Boundary region of a mask

View source: R/utils_surf.R

boundary_mask_surfR Documentation

Boundary region of a mask

Description

Identify the vertices within boundary_width edges of a vertex in the input mask on a triangular mesh. Returns a logical indicating if a vertex is within boundary_width edges of the mask.

Usage

boundary_mask_surf(faces, mask, boundary_width = 10)

Arguments

faces

An F \times 3 matrix, where each row contains the vertex indices for a given triangular face in the mesh. F is the number of faces in the mesh.

mask

A length V logical vector indicating if each vertex is within the input mask.

boundary_width

A positive integer representing the width of the boundary to compute. The furthest vertices from the input mask will be this number of edges away from the closest vertex in the input mask. Default: 10.

Value

A length-V logical vector. Each entry corresponds to the vertex with the same index. The value is true if a vertex is within boundary_width edges of a vertex in the mesh, but is not within the mesh itself.

See Also

Other surface-related: add_surf(), edit_mask_surf(), even_vert_samp(), is.surf(), load_surf(), mask_surf(), read_surf(), resample_surf(), rotate_surf(), surf_area(), view_surf(), write_surf_gifti()


mandymejia/ciftiTools documentation built on Feb. 28, 2024, 11:20 a.m.