Nearest-neighbour downsample only (interpolating a label mask would invent
labels that do not exist).
Usage
at_mask_preview(mask, max_dim = 1024L, call = rlang::caller_env())
Arguments
- mask
An annot_mask.
- max_dim
Integer maximum dimension of the preview. Default 1024.
- call
The calling environment, for error reporting.
Value
A downsampled annot_mask with membership-aware counts recomputed.
Metadata records the preview dimensions and sampling stride, its parent
grid, and the original source provenance. No full-resolution counts are
copied onto the sampled matrix.
See also
Other masks:
at_mask(),
at_mask_agreement(),
at_mask_boundary(),
at_mask_derive(),
at_mask_legend(),
at_mask_stack(),
at_mask_stats(),
at_read_mask(),
at_read_npy(),
at_write_mask(),
at_write_masks(),
at_write_npy()