Learn R Programming

schemr (version 0.3.1)

xyz_to_lab: Convert from XYZ colour channels to Lab space.

Description

Convert from XYZ colour channels to Lab space.

Usage

xyz_to_lab(xyz)

Value

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

Arguments

xyz

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

Examples

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

Run the code above in your browser using DataLab