RGB2Lab: RGB2Lab

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/functions.R

Description

Convert a matrix of RGB points to Lab color space.

Usage

1
RGB2Lab(mat)

Arguments

mat

matrix of row-elements (points with R, G and B values in [0,1]).

Value

matrix of row-elements (points in Lab color space, L should scale in [0,100], and (a,b) in [-110,110].

Author(s)

Pierrick Bruneau

References

This transform is based on ITU-R BT 709, using the D65 white point reference. See http://fr.wikipedia.org/wiki/Rec.(underscore)709 for details. also see http://www.easyrgb.com/index.php?X=MATH

See Also

Lab2RGB

Examples

1
2
dat <- matrix(runif(30), ncol=3)
labdat <- RGB2Lab(dat)

patchPlot documentation built on May 19, 2017, 8:15 a.m.

Search within the patchPlot package
Search all R packages, documentation and source code