Converting Lab Values to RGB values in opencv

前端 未结 2 907
一生所求
一生所求 2021-02-10 18:02

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:33

    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.

提交回复
热议问题