Usage
rgb2grey(obj, compress=TRUE)
rgb2hsi(obj)
hsi2rgb(obj, cspace = "Adobe", compress=TRUE)
rgb2yuv(obj)
yuv2rgb(obj, cspace = "Adobe", compress=TRUE)
rgb2yiq(obj)
yiq2rgb(obj, cspace = "Adobe", compress=TRUE)
rgb2xyz(obj)
xyz2rgb(obj, cspace = "Adobe", black= 0, exposure=1, compress=TRUE)
Arguments
obj
an object of class "adimpro", obj$type should coincide with
the first three letters of the function name, that is obj$img containes
color values in the corresponding color space.
cspace
Target color space, one of c("sRGB","Adobe","wGamut","kodak","xyz").
For function xyz2rgb also c("yuv","yiq") are implemented.
exposure
Multiplicative factor for all color channels (in xyz or rgb spaces). Applied
in linear color space, i.e. if the image is gamma corrected the gamma correction is reversed first.
black
Adjustment for black color. Color values with luminance
compress
logical, determines if image data are returned in raw-format.