Fast Way To Convert Rgb To Lab In Python
Is there a quick way to convert RGB to LAB in Python3 using D50 sRGB? Python-Colormath too slow skimage use D65
Solution 1:
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)
Post a Comment for "Fast Way To Convert Rgb To Lab In Python"