powered by
Convert from Lab space to XYZ colour channels.
lab_to_xyz(lab)
A tibble of X, Y and Z colour channels.
tibble
A dataframe or matrix with L, a and b colour channels located in the columns 1 to 3, respectively.
l <- sample(x = 40:60, size = 10, replace = TRUE) a <- sample(x = -128:128, size = 10, replace = TRUE) b <- sample(x = -128:128, size = 10, replace = TRUE) lab_to_xyz(data.frame(l = l, a = a, b = b))
Run the code above in your browser using DataLab