问题
Is there a canonical colorspace conversion library? I can't find any pre-existing solutions. Is CIELab conversion is too obscure?
回答1:
It is not obscure, I have done it myself recently from RGB to CIELAB. Look at the source of OpenCV there is a lot of color convesrion functions. File is: ../src/cv/cvcolor.cpp Have a look at the function icvBGRx2Lab_32f_CnC3R for example. This is probably what are you looking for.
来源:https://stackoverflow.com/questions/2428304/cielab-colorspace-conversion