Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Facing output difference while using different OpenCv Versions

Hi, I was using OpenCV 2.2 previously, and now I am using OpenCv 2.4.5. The cvCvtColor function gives difference in output when converting from RGB to HSV, and the difference is in H(Hue). The input of RGB is 211,216 and 255 respectively and the output in case of OpenCV 2.2 is 116,44 and 255 and that in case of 2.4.5 is 117,44 and 255. The output difference is found in the Hue Array(116/117). When I calculated it manually using the formula mentioned in the documentation, the output is 116.590909. So the assumption here is OpenCV 2.4.5 rounds off the value and OpenCV 2.2 discards the values after decimal point.

Can anyone please let me know why is there a difference in output of OpenCv Version?

Facing output difference while using different OpenCv Versions

Hi, Previously, I was using OpenCV 2.2 previously, and now I am using OpenCv 2.4.5. OpenCV 2.4.5. The cvCvtColor output of the cvCvtColor() function gives difference in output is different when converting from RGB to HSV, and the difference is in H(Hue). H(Hue).

The input of RGB is 211,216 and 255 respectively (211,216,255) and the output in case of is:

•Using OpenCV 2.2 is 116,44 and 255 and that in case of 2.4.5 is 117,44 and 255. 2.2: (116,44,255) •Using OpenCV 2.4.5: (117,44,255) The output difference is found in the Hue Array(116/117). array (116 | 117). When I calculated it manually using the formula mentioned in the documentation, the output is 116.590909. So the assumption here is that OpenCV 2.4.5 rounds off the value and OpenCV 2.2 discards the values after the decimal point.

Can anyone please let me know why is there a this difference in output of OpenCv Version?happens?