Converting Lab Values to RGB values in opencv

前端 未结 2 1112
小鲜肉
小鲜肉 2021-02-10 18:00

I am trying to convert the Lab values to its corresponding RGB values.I don\'t want to convert Lab image to RGB image but some values of L a and b.The function cvCvtColor only w

2条回答
  •  日久生厌
    2021-02-10 18:39

    I think the only way to do what you want is:

    • look at the OpenCV source code or documentation for cvCvtColor and implement the equations yourself (they're all explicitly given on that page)
    • create a dummy image with the few Lab values you want to convert (say 1 by n by 3, where n is the number of values you want to convert) and use cvCvtColor around that.

提交回复
热议问题