loadimg: Load image

Description Usage Arguments Details Value See Also

Description

To read image into R

Usage

1
loadimg(path, resize = TRUE, width)

Arguments

path

path of a single image

resize

logical. whether to resize the picture

width

width to resize to, in pixel. used only if resize=TRUE. if resize=TRUE and width is not given, image is resized to 1280px in width by default

Details

All images loaded are converted into gray scale. Image format is automatically detected from the extension. Supported formats include .jpg, .tif, and .png. This function is used in place of readImage (from EBImage) for this package to speed up the reading of image.

Value

an image matrix

See Also

Which this function wraps: readJPEG, readTIFF, readPNG


jinyung/otolith documentation built on May 19, 2019, 10:36 a.m.