image_load: Load images from files

Description Usage Arguments Value Examples

View source: R/helpers.R

Description

A wrap around image_read and magick2cimg to load one or more images from files.

Usage

1
image_load(image_file)

Arguments

image_file

A character vector of one or more paths to image files

Value

A cimg object or a list of cimg objects when multiple files are passed to image_file.

Examples

1
2
3
# load image
fl <- system.file('extdata', 'Image0001_.jpg', package = 'colocr')
img <- image_load(fl)

colocr documentation built on July 1, 2020, 10:32 p.m.