View source: R/edit_mask_surf.R
| edit_mask_surf | R Documentation |
Erode, dilate, or get the borders of a mask along the cortical surface
edit_mask_surf(
x,
mwall = NULL,
surf = NULL,
hemisphere = c("left", "right"),
do = c("erode", "dilate", "borders"),
depth = 1
)
erode_mask_surf(
x,
mwall = NULL,
surf = NULL,
hemisphere = c("left", "right"),
depth = 1
)
dilate_mask_surf(
x,
mwall = NULL,
surf = NULL,
hemisphere = c("left", "right"),
depth = 1
)
x, mwall |
Vector of the data mask to edit, and the medial wall mask.
These can be specified in two ways. First, Second, In either case, |
surf, hemisphere |
Provide one: the surface in the same resolution as the data, or the name of the hemisphere of the surface to resample and use (default: resample the left surface). |
do |
|
depth |
How many iterations of the edit? Default: |
The depth of the edit is determined by the number of edges between the
vertices. To erode or dilate based on spatial distance (mm), see
-cifti-dilate and -cifti-erode.
x after erosion or dilation.
Other surface-related:
add_surf(),
boundary_mask_surf(),
even_vert_samp(),
is.surf(),
load_surf(),
mask_surf(),
read_surf(),
resample_surf(),
rotate_surf(),
surf_area(),
view_surf(),
write_surf_gifti()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.