lab_to_xyz {schemr}R Documentation

Convert from Lab space to XYZ colour channels.

Description

Convert from Lab space to XYZ colour channels.

Usage

lab_to_xyz(lab)

Arguments

lab

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

Value

A tibble of X, Y and Z colour channels.

Examples

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))

[Package schemr version 0.2.0 Index]