Skip to contents

Read an image into a lightweight annot_image handle, auto-detecting the backend from the file unless one is named.

Usage

at_read_image(path, backend = NULL, ..., call = rlang::caller_env())

Arguments

path

Single string path to an image file.

backend

Optional backend name; auto-detected when NULL.

...

Passed to the backend's reader.

call

The calling environment, for error reporting.

Value

An annot_image.

Examples

img <- at_read_image(at_example_path("tissue"))
at_dims(img)
#> [1] 512 512