In the return statement at the bottom of function rgb2lab() I believe the first element of the array is being calculated incorrectly. Presently the statement is:
return [(116 y) - 16, 500 (x - y), 200 * (y - z)]
I believe it should be:
return [(116 x) - 16, 500 (x - y), 200 * (y - z)]
In the return statement at the bottom of function rgb2lab() I believe the first element of the array is being calculated incorrectly. Presently the statement is: return [(116 y) - 16, 500 (x - y), 200 * (y - z)]
I believe it should be: return [(116 x) - 16, 500 (x - y), 200 * (y - z)]