Skip to contents

Image metadata

Usage

at_meta(x, key = NULL, call = rlang::caller_env())

Arguments

x

An annot_image.

key

Optional single string. When supplied, the corresponding metadata element is returned; otherwise the whole metadata list is returned.

call

The calling environment, for error reporting.

Value

When key is NULL, a list of all metadata (including source, backend, dtype, pixel_unit, and any backend-specific entries). When key is supplied, the single element (or NULL if absent).