Fast way to convert rgb to lab in python

colors, python, scikit-image

Solution

For now, the white reference in skimage cannot be passed as a parameter (pull request welcome), but here is a workaround:

from skimage import color
color.colorconv.lab_ref_white = np.array([0.96422, 1.0, 0.82521])
lab = color.rgb2lab(image)

Problem

Is there a quick way to convert RGB to LAB in Python3 using D50 sRGB? Python-Colormath too slow skimage use D65

Original source