# Does COLOR\_BGR2HSV\_FULL really yield more granular hue values?

**URL:** <https://forum.opencv.org/t/does-color-bgr2hsv-full-really-yield-more-granular-hue-values/4778>\
**Category:** Uncategorized\
**Created:** [August 16, 2021, 3:12am UTC](https://forum.opencv.org/t/does-color-bgr2hsv-full-really-yield-more-granular-hue-values/4778 "2021-08-16T03:12:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Klein](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/tim_klein/32/3496_2.png) [@Tim\_Klein](https://forum.opencv.org/u/Tim_Klein)\
**Post date:** [August 16, 2021, 3:12am UTC](https://forum.opencv.org/t/does-color-bgr2hsv-full-really-yield-more-granular-hue-values/4778/1 "2021-08-16T03:12:59Z")

</div>

For an 8-bit image, if you pass cv2.COLOR\_BGR2HSV to cv2.cvtColor(), you get back values between 0 and 179 for the Hue channel.

But if you instead pass cv2.COLOR\_BGR2HSV\_FULL, you get Hue values between 0 and 255.

Does that mean you get more granular Hue distinctions when using the \_FULL option, since there are 256 possible values rather than only 180 possible values? Or is CV simply “scaling up” from the smaller range to produce the larger range, so the information content is essentially the same?

---

<div class="post-metadata">

**Author:** ![kbarni](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/kbarni/32/26_2.png) [@kbarni](https://forum.opencv.org/u/kbarni)\
**Post date:** [August 16, 2021, 4:08pm UTC](https://forum.opencv.org/t/does-color-bgr2hsv-full-really-yield-more-granular-hue-values/4778/2 "2021-08-16T16:08:29Z")

</div>

The full range gives you a slightly better hue resolution, but I don’t think the difference is noticeable.  
The 0-179 hue range is more intuitive because the angular values (in degrees), I’m more used to it.

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [August 16, 2021, 6:49pm UTC](https://forum.opencv.org/t/does-color-bgr2hsv-full-really-yield-more-granular-hue-values/4778/3 "2021-08-16T18:49:54Z")

</div>

use float32/float64 data if you need more precision

---

<div class="post-metadata">

**Author:** ![Tim\_Klein](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/tim_klein/32/3496_2.png) [@Tim\_Klein](https://forum.opencv.org/u/Tim_Klein)\
**Post date:** [August 16, 2021, 7:17pm UTC](https://forum.opencv.org/t/does-color-bgr2hsv-full-really-yield-more-granular-hue-values/4778/4 "2021-08-16T19:17:15Z")

</div>

Thank you for your replies!
