Skip to contents

Return the pixel dimensions c(width, height) of an annot_image at a given pyramid level.

Usage

at_dims(x, level = 0L, call = rlang::caller_env())

Arguments

x

An annot_image.

level

Integer pyramid level, 0 for full resolution. Must be in 0:(at_n_levels(x) - 1).

call

The calling environment, for error reporting.

Value

An integer vector of length 2, c(width, height).

Examples

# Image handles come from at_read_image(); see the images vignette.