I converted a RGB-image both in MatLab and OpenCV to the Lab-colorspace to do some color manipulation in Lab-space. In MatLab I get good results, but in OpenCV the result image is messy.
I checked the results of the conversion rgb2lab for the RGB-value [0 255 0] in MatLab and OpenCV, the results are the same. But when converting back (lab2rgb) I get different results in MatLab and OpenCV. Any idea why?
The Lab-value is [88 10 68]:
I think there was an error in OpenCV 1.x, because after installing OpenCV 2.1 yesterday, my algorithm is working fine and I get results I was expecting.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With