I converted the RGB image in both MatLab and OpenCV in Lab-colorspace to do some color manipulation in Lab-space. In MatLab, I get good results, but in OpenCV, the image result is messy.
I checked the results of the rgb2lab conversion for the RGB value [0 255 0] in MatLab and OpenCV, the results are the same. But when converting backward (lab2rgb) I get different results in MatLab and OpenCV. Any idea why?
Lab value is [88 10 68]:
- in matlab i get [255 212 81] as rgb value with lab2srgb
- in OpenCV I get [255 166 23] using CV_Lab2RGB
source
share