array_to_cimg {recolorize} | R Documentation |
Converts from a raster array to a cimg object
Description
What it says it does.
Usage
array_to_cimg(x, flatten_alpha = TRUE, bg = "white", rm_alpha = TRUE)
Arguments
x |
An image array, i.e. as read in by readPNG. |
flatten_alpha |
Logical. Flatten the alpha channel? |
bg |
Passed to |
rm_alpha |
Logical. Remove the alpha channel? Note this will "reveal" whatever is hidden behind the transparent pixels, rather than turn them white. |
Value
A cimg
object.
[Package recolorize version 0.1.0 Index]