Skip to contents

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 the legend pixel counts recomputed.