mat2img: Matrix to image

View source: R/RC.R

mat2imgR Documentation

Matrix to image

Description

Generalized version of magick::image_read() which also allows to read numerical objects.

Usage

mat2img(img, density = NULL, depth = NULL, strip = FALSE, alpha = 1)

Arguments

img

Image (e.g., image path) to be read, or numerical object (e.g., matrix, array) see magick::image_read() for more information (equivalent to 'path' argument).

density

see magick::image_read()

depth

see magick::image_read()

strip

see magick::image_read()

alpha

(optional) Scalar indicating the trasnparency of the (alpha). If the object already contains an alpha, than it will not be overwritten. Default is '1'.

Examples

NULL

matschmitz/schmitz documentation built on May 15, 2022, 4:15 p.m.