# Why OpenCV use YCrCb instead of YCbCr for color space conversion?

**URL:** <https://forum.opencv.org/t/why-opencv-use-ycrcb-instead-of-ycbcr-for-color-space-conversion/4714>\
**Category:** C++\
**Tags:** imgproc\
**Created:** [August 11, 2021, 6:22am UTC](https://forum.opencv.org/t/why-opencv-use-ycrcb-instead-of-ycbcr-for-color-space-conversion/4714 "2021-08-11T06:22:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Haxtra\_Z](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/haxtra_z/32/2889_2.png) [@Haxtra\_Z](https://forum.opencv.org/u/Haxtra_Z)\
**Post date:** [August 11, 2021, 6:22am UTC](https://forum.opencv.org/t/why-opencv-use-ycrcb-instead-of-ycbcr-for-color-space-conversion/4714/1 "2021-08-11T06:22:08Z")

</div>

Say, I would like to convert an BGR image to YUV or YCbCr space. The function is `cv::cvtColor`.  
What makes confuse is that, there is cv::COLOR\_BGR2YUV, cv::COLOR\_BGR2YCrCb, but there is’t the expected cv::COLOR\_BGR2YCbCr.

What is the purpose that using YCrCb, instead of the more often mentioned YCbCr, i.e. the counterpart of YUV?

---

<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 11, 2021, 1:23pm UTC](https://forum.opencv.org/t/why-opencv-use-ycrcb-instead-of-ycbcr-for-color-space-conversion/4714/2 "2021-08-11T13:23:04Z")

</div>

might just be a typo and nobody noticed until now. or it might be a real bug, which is possible.

feel free to submit an issue on the github and maybe investigate if the _code_ does the right thing or not.
