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

后端 未结 4 768
既然无缘
既然无缘 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:07

    That's because L value is in range [0..255] in OpenCV. You can simply scale this value to needed interval ([0..100] in your case).

提交回复
热议问题