xyz_to_lab: Convert from XYZ colour channels to Lab space.

View source: R/color-spaces.R

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

schemr documentation built on June 25, 2024, 9:07 a.m.