Converting an OpenCV BGR 8-bit Image to CIE L*a*b*

后端 未结 4 777
既然无缘
既然无缘 2020-12-30 05:29

I am trying to convert a given Mat representing an RGB image with 8-bit depth to Lab using the function provided in the documentation:

4条回答
  •  心在旅途
    2020-12-30 06:21

    I am not sure about João Abrantes's range on A and B.

    The opencv documentation has clearly mentioned the CIE L*a*b*range.

    • 8 bit images

    Thus leading to a range of

    0 <= L <= 255
    0 <= a <= 255
    0 <= b <= 255
    

提交回复
热议问题