Skip to contents

Reads TIFF, PNG, or JPEG image files and returns an sg_image object. Dispatches to EBImage::readImage() when available, otherwise uses imager::load.image().

Usage

sg_read_image(path, ...)

Arguments

path

Character string, path to the image file.

...

Additional arguments passed to the underlying reader.

Value

An sg_image object.

Examples

# \donttest{
# img <- sg_read_image("path/to/image.tiff")
# }