MCPcopy Create free account
hub / github.com/carbonengine/trinity / XYZToRGB

Function XYZToRGB

trinity/Tr2KelvinColor.cpp:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23Vector3d XYZToRGB( const Vector3d& xyz )
24{
25 // Using CIE 1931 (2-deg Standard Observer)
26 return Vector3d(
27 0.41866 * xyz.x - 0.15866 * xyz.y - 0.08283 * xyz.z,
28 -0.09117 * xyz.x + 0.25243 * xyz.y + 0.01571 * xyz.z,
29 0.00092 * xyz.x - 0.00255 * xyz.y + 0.17860 * xyz.z );
30}
31
32Vector2 Tr2StandardIlluminantToCCT( Tr2StandardIlluminant illuminant )
33{

Callers 1

TriColorFromKelvinFunction · 0.85

Calls 1

Vector3dClass · 0.50

Tested by

no test coverage detected