Stack per-layer masks into a 3D array
Usage
at_mask_stack(project, layers = NULL, level = 0L, call = rlang::caller_env())Arguments
- project
An annot_project.
- layers
Optional layer name(s) to include; all by default. Unknown names are an error.
- level
Integer pyramid level. Default
0.- call
The calling environment, for error reporting.
Value
A 3D integer array [y, x, layer], one multi-class plane per layer;
the third dimension is named by layer. Codes are local to each layer; the
legends attribute is a named list of the per-layer legends (see
at_mask_legend()) that maps them back to labels.