This function is a simple wrapper around EBImage::Image()
.
Arguments
- data
A vector or array containing the pixel intensities of an image. If missing, the default 1x1 zero-filled array is used.
- ...
Additional arguments passed to
EBImage::Image()
.
Examples
if (interactive() && requireNamespace("EBImage")) {
library(pliman)
img <-
as_image(rnorm(150 * 150 * 3),
dim = c(150, 150, 3),
colormode = 'Color')
plot(img)
}