img_read: Read bitmap image (bmp, jpg, png, tiff)

View source: R/utils.R

img_readR Documentation

Read bitmap image (bmp, jpg, png, tiff)

Description

Wrapper for readbitmap's read.bitmap function. The function currently allows reading in images in bmp, jpg / jpeg, png, or tif / tiff format.

Usage

img_read(path, ...)

Arguments

path

Path to the image file.

...

Additional parameters that are passed to read.bitmap and the underlying image reader packages.

Details

For details, see the read.bitmap documentation.

Value

Objects returned by read.bmp, readJPEG, readPNG, or readTIFF. See their documentation for details.

See Also

read.bitmap, read.bmp, readJPEG, readPNG, readTIFF

Examples

## Example image with high vertical symmetry: rails
rails <- img_read(system.file("example_images", "rails.jpg", package = "imagefluency"))

stm/imagefluency documentation built on Feb. 27, 2024, 9:29 a.m.