Learn R Programming

colorscience (version 1.0.8)

RGB2XYZ: Convert sRGB coordinates to XYZ

Description

RGB2XYZ Converts sRGB coordinates to XYZ.

Usage

RGB2XYZ(RGBmatrix, illuminant = "D65", observer = 2, RefWhite
                 = get("XYZperfectreflectingdiffuser", envir = environment()),
                 RGBModel = "sRGB", RefWhiteRGB = get("whitepointsRGB",
                 envir =environment()), gamma = NA,
                 RefWhiteIllum = get("XYZperfectreflectingdiffuser",
                 envir = environment()), CAT = "Bradford",
                 CATarray = get("ChromaticAdaptation", envir = environment()))

Arguments

RGBmatrix

sRGB coordinates

illuminant

illuminant

observer

observer

RefWhite

White Reference

RGBModel

RGB Model

RefWhiteRGB

White Reference RGB

gamma

gamma

RefWhiteIllum

White Reference illuminant

CAT

Chromatic Adaptation algorithm

CATarray

Chromatic Adaptation data

Value

CIE XYZ coordinates

References

Logicol S.r.l., 2014 EasyRGB color search engine http://www.easyrgb.com/

Examples

Run this code
# NOT RUN {
RGB2XYZ(c(0.310897, 0.306510, 74.613450))
# }

Run the code above in your browser using DataLab