imColorXYZ2Lab

Converts CIE XYZ (linear) to CIE L*a*b* (nonlinear). \n * The white point is D65. \n \verbatim 0 <= L <= 1 ; -0.5 <= ab <= +0.5 ; 0 <= XYZ <= 1

if (t > 0.008856) f(t) = pow(t, 1/3) else f(t) = 7.787*t + 16/116

fX = f(X / Xn) fY = f(Y / Yn) fZ = f(Z / Zn)

L = 1.16 * fY - 0.16 a = 2.5 * (fX - fY) b = (fY - fZ)

\endverbatim * \ingroup color

version(IM)
nothrow @nogc @safe
void
imColorXYZ2Lab
(
const float X
,
const float Y
,
const float Z
,
ref float L
,
ref float a
,
ref float b
)

Meta