[scikit-image] color.lab2rgb output differs from colormine.org

Michael O'Brien mob.irl at gmail.com
Mon Mar 27 09:01:55 EDT 2017


Hi all,


If I use the following array of LAB values
array([[[ 48.07851346, -14.69400135, 25.2170507 ],
 [ 63.21232753, -3.65444198, 6.67734193],
 [ 45.80027308, -2.47952304, 11.5073341 ],
 [ 46.84900559, -10.37025167, 19.92527996],
 [ 44.92476952, 19.36861848, 2.97238555],
 [ 35.50132805, 5.89086564, 1.95259827]]])
and use the following code to pass the array to lab2rgb
rgbcolours =color.lab2rgb(ClusterColours.values[np.newaxis])
I get the array
array([[[ 0.40929448, 0.47071505, 0.27701891],
 [ 0.59383913, 0.60611158, 0.55329837],
 [ 0.4393785 , 0.4276561 , 0.34999225],
 [ 0.4159481 , 0.4516056 , 0.3026519 ],
 [ 0.54449997, 0.36963636, 0.4001209 ],
 [ 0.36970012, 0.3145826 , 0.315974 ]]])
but on colormine.org if I enter the 1st of the LAB values I get
105,119,70 for RGB and not colours so close to black

Where am I going wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20170327/9fe2c9ef/attachment.html>


More information about the scikit-image mailing list