Define what category to look at

look_at(
  .array,
  what = "voxels",
  of_category,
  in_relation_to = NULL,
  kernel_width = 3,
  kernel_shape = "diamond"
)

Arguments

.array

Array to analyze.

what

Either "voxels" (default) or "components" to look at individual voxels or connected components.

of_category

Vector of categories to consider. If negative, these are omitted.

in_relation_to

Vector of categories to consider for cross-category morphology. If negative, these are omitted.

kernel_width

Width of the kernel for determining connectivity. Can be a vector (row, column, layer). Not used when looking at voxels.

kernel_shape

Shape of the kernel for determining connectivity. Can be "diamond" (default), "disc" or "box". Not used when looking at voxels.

Value

Data frame (tibble) with x, y, z and value or component

columns.