CIELAB color range for Scikit-image?

与世无争的帅哥 提交于 2020-05-14 22:30:41

问题


I am working on CIELAB colour space but cannot find any information about the range of each channel produced by skimage.color.rgb2lab .

Thanks.


回答1:


Just would like to post the answer from @Stefan

L: 0 to 100, a: -127 to 128, b: -128 to 127.




回答2:


Quote from wiki, https://en.wikipedia.org/wiki/CIELAB_color_space

The scaling and limits of the a* and b* axes will depend on the specific implementation, as described below, but they often run in the range of ±100 or −128 to +127 (signed 8-bit integer).

In skimage, xxx2lab() usually return a float point array, thus it is more likely that the range of a* and b* is [-100,100].

PS:

I have tried image with value > 100 or < -100 in lab color, and I think the warnings I got from lab2rgb() in skimage could prove this point.

UserWarning: Color data out of range: Z < 0 in 30 pixels return xyz2rgb(lab2xyz(lab, illuminant, observer))



来源:https://stackoverflow.com/questions/25294141/cielab-color-range-for-scikit-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!