Learn R Programming

xRing (version 0.1.1)

imRead: Load Image From a File

Description

Load an image using the load.image function from imager package

Usage

imRead(file)

Value

an object of class "cimg"

Arguments

file

path to file

See Also

load.image

Examples

Run this code
if (interactive()) {
  file_path <- system.file("img", "AFO1046.1200dpi.png", package = "xRing")
  im <- imRead(file_path)
  imDisplay(im)
}

Run the code above in your browser using DataLab