lab2rgb: Lab to RGB Conversion

View source: R/col2lab.R

lab2rgbR Documentation

Lab to RGB Conversion

Description

Lab colourspace to RGB conversion. Calculated with Observer. = 2°, Illuminant = D65.

Usage

lab2rgb(lab, ref_X = 95.047, ref_Y = 100, ref_Z = 108.883)

Arguments

lab
ref_X, ref_Y, ref_Z

Reference values for Observer= 2°, Illuminant= D65

Details

The formulas used to convert from Lab to XYZ and XYZ to RGB are from http://www.easyrgb.com/en/math.php and the reference values are from http://www.brucelindbloom.com/index.html?ColorCheckerCalcHelp.html

Value

vector of red, green and blue values

See Also

Other color: col2lab(), color_conv()

Examples

lab <- c(100, 0, 0)
lab2rgb(lab)

lab <- col2lab("red")
lab2rgb(lab)

webmorphR documentation built on June 2, 2022, 5:07 p.m.