Learn R Programming

schemr (version 0.3.1)

lab_to_xyz: Convert from Lab space to XYZ colour channels.

Description

Convert from Lab space to XYZ colour channels.

Usage

lab_to_xyz(lab)

Value

A tibble of X, Y and Z colour channels.

Arguments

lab

A dataframe or matrix with L, a and b colour channels located in the columns 1 to 3, respectively.

Examples

Run this code
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