xyz_to_lab {schemr}R Documentation

Convert from XYZ colour channels to Lab space.

Description

Convert from XYZ colour channels to Lab space.

Usage

xyz_to_lab(xyz)

Arguments

xyz

A dataframe or matrix with X, Y and Z colour channels located in the columns 1 to 3, respectively.

Value

A tibble of L, a and b colour space values.

Examples

x <- sample(x = 40:60, size = 10, replace = TRUE)
y <- sample(x = 40:60, size = 10, replace = TRUE)
z <- sample(x = 40:60, size = 10, replace = TRUE)
xyz_to_lab(data.frame(x = x, y = y, z = z))

[Package schemr version 0.3.0 Index]