Opencv color mapping with direct pixel access

后端 未结 2 1969
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-30 14:39

I have a gray scale image that I want to display in color by mapping the gray scale values with a color palette (like colormap in Matlab).

I managed to do it by usin

2条回答
  •  情话喂你
    2020-12-30 15:31

    I'm posting this to close the question like asked in the comments of my question.

    The answer was:

    I found out my error... In fact it's RGB but that wasn't the problem, I had color values at 256 instead of 255... Really sorry... I guess asking the question helped me found the answer

    Thank you

提交回复
热议问题