| 21 | } |
| 22 | |
| 23 | Vector3d 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 | |
| 32 | Vector2 Tr2StandardIlluminantToCCT( Tr2StandardIlluminant illuminant ) |
| 33 | { |
no test coverage detected