cvd_image(img, type, file, severity = 1, linear = TRUE)
array as returned by
height x width x depth. The depth coordinate contains
R/G/B and alpha if given (png). In case of a single character string
has to be the full path to an image of type png or jpg/jpeg.
string name of the function which will be used to
convert the colors (
If set to
original the image will be written as is.
string with (full) path to resulting image. Has to
be a png image name.
numeric. Severity of the color vision defect, a number between 0 and 1.
logical. Should the color vision deficiency transformation be applied to the
linearized RGB coordinates (default)? If
FALSE, the transformation is applied to the
gamma-corrected sRGB coordinates (which was the default up to version 2.0-3 of the package).