Batch-write the masks of a project
Usage
at_write_masks(
project,
dir,
per = c("layer", "roi", "class", "project"),
type = c("labelled", "binary", "multiclass"),
level = 0L,
overwrite = FALSE,
call = rlang::caller_env()
)Arguments
- project
An annot_project.
- dir
Output directory (created if needed).
- per
One of
"layer","roi","class", or"project"; controls how masks are split into files.- type
Mask type passed to
at_mask().- level
Integer pyramid level. Default
0.- overwrite
Logical; overwrite existing files. Default
FALSE.- call
The calling environment, for error reporting.
Value
An invisible export-receipt tibble::tibble with columns path,
type, n_px, and bytes.