Identify which cells belong to particular stomatal complexes

identify_stomatal_complexes(
  cells,
  paired = F,
  buffervalue,
  stom.val,
  subs.val = NULL
)

Arguments

cells

Object of class sf. The image to be measured, converted to polygons (e.g. using image_to_poly())

paired

Logical. Are guard cells annotated separately (TRUE), or as one cell (FALSE? Defaults to FALSE.

buffervalue

Amount to buffer cells by. Should be similar to wall width (which varies with image scaling).

stom.val

Numeric. Value of stomata in inpute image.

subs.val

Numeric. Value of subsidiary cells in image (optional). Defaults to NULL.

Value

sf object with the IDs of all cells belonging to the stomatal complex.