im_load: Load image from file or URL

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Load image from file or URL

Usage

1

Arguments

file

path to file or URL

name

a string for name attribute. if missing, inferred from the file argument.

Value

an array of image data

Examples

1
2
3
4
5
6
7
8
## Not run: 
# load an image from disk
im = im_load("path/to/your/image.jpg")
plot(im)
# load an image from URL
im = im_load("http://placehold.jp/150x150.png")

## End(Not run)

tsuda16k/noesis documentation built on Nov. 25, 2020, 10:16 a.m.