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

img_read(path, ...)

Arguments

path

Path to the image file.

...

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

Value

Objects returned by read.bmp,

readJPEG, readPNG, or

readTIFF. See their documentation for details.

Details

For details, see the read.bitmap documentation.

Examples

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