readImage: this function reads various types of images

Description Usage Arguments Details Value Examples

Description

Reads images of type .png, .jpeg, .jpg, .tiff

Usage

1
readImage(path, ...)

Arguments

path

a string specifying the path to the saved image

...

further arguments for the readPNG, readJPEG and readTIFF functions

Details

This function takes as input a string-path and returns the image in a matrix or array form. Supported types of images are .png, .jpeg, .jpg, .tiff. Extension types similar to .tiff such as .tif, .TIFF, .TIF are also supported

Value

the image in a matrix or array form

Examples

1
2
3
path = system.file("tmp_images", "1.png", package = "OpenImageR")

image = readImage(path)


Search within the OpenImageR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.