Ask Your Question

Revision history [back]

Does the exact same code work in a loop in C++? I had a quick look and from the docs should

z = z > 0.008856 ? z /= exp(log(z) / 3.0) : (7.787 * z + 16/116);

be

z = z > 0.008856 ? exp(log(z) / 3.0) : (7.787 * z + 16/116);