Function toXyzD65

Converts CIE 1976 L*a*b* D50 coordinates to XYZ D65.

XyzD65!T toXyzD65(T)(
  CieLabD50!T lab
) pure nothrow @nogc @safe
if (is(T == float) || is(T == double));

The D50 -> D65 linear Bradford adaptation is explicit in this conversion.

Parameters

NameDescription
lab CIELAB coordinates referenced to D50.

Returns

CIE XYZ coordinates referenced to D65.

Example

const source = XyzD65d(
    0.21661,
    0.14602,
    0.59452
);

const back = source.toCieLabD50.toXyzD65;

assert(back.x > 0.2165 && back.x < 0.2168);
assert(back.y > 0.1459 && back.y < 0.1462);
assert(back.z > 0.5943 && back.z < 0.5948);