Why is the range of hue 0-180° in opencv

JasperV picture JasperV · May 22, 2013 · Viewed 41.8k times · Source

Can anybody explain to me why the hue value of an HSV image in OpenCV only goes to 180° and not the full 360°?

I have found somewhere that OpenCV uses a 180° cylinder, but I can not really visualize such a cylinder.

Thanks in advance!
J

Answer

berak picture berak · May 22, 2013

try to put 360 into a uchar ;)

so, it's just divided by 2 to make it fit..