I am trying to implement various Matlab functions rgb2lab in opencv. I got output images(in opencv) similar to Matlab. But their pixel values are different. For example output pixels values of 2x2 pixel image:
1. Opencv pixel values :
[255, 255, 255, 255, 255, 255;
255, 255, 255, 255, 255, 255]
2. Matlab pixel values :
e(:,:,1) =
51.0815 51.0815
51.0815 51.0815
e(:,:,2) =
33.3777 33.3777
33.3777 33.3777
e(:,:,3) =
10.6660 10.6660
10.6660 10.6660
Please help me to resolve my problem. How it happen?
↧