# \#cvtcolor

**URL:** https://forum.opencv.org/tag/cvtcolor/86.md

[Latest](https://forum.opencv.org/latest.md) · [Categories](https://forum.opencv.org/categories.md) · [Tags](https://forum.opencv.org/tags.md)

---

## [How to convert BGGR 2 RGGB with opencv](https://forum.opencv.org/t/how-to-convert-bggr-2-rggb-with-opencv/11134)

<div class="topic-metadata">

**Author:** [@First\_Love](https://forum.opencv.org/u/First_Love)\
**Replies:** 4\
**Last updated:** [May 14, 2025, 3:47am UTC](https://forum.opencv.org/t/how-to-convert-bggr-2-rggb-with-opencv/11134 "2025-05-14T03:47:40Z")

</div>

Hi all, I’m OpenCV & image processing newbie. I know that OpenCV has COLOR\_BayerRGGB2BGR/COLOR\_BayerRG2BGR, but does it has bayer 2 bayer like BGGR 2 RGGB? Or what’s the opencv-way to do this if it doesn’t provide buil…

---

## [ How to calculate disparity, using imgL and imgR in the CMYK system?](https://forum.opencv.org/t/how-to-calculate-disparity-using-imgl-and-imgr-in-the-cmyk-system/12551)

<div class="topic-metadata">

**Author:** [@iuri](https://forum.opencv.org/u/iuri)\
**Replies:** 1\
**Last updated:** [March 28, 2023, 8:28am UTC](https://forum.opencv.org/t/how-to-calculate-disparity-using-imgl-and-imgr-in-the-cmyk-system/12551 "2023-03-28T08:28:33Z")

</div>

Reading image as RGB and converting them to CMYK resulted in a better color definition to identify markers attached to an actuator. As you can see them in magenta, in the CMYK image attached. Now, they must be sterilize…

---

## [How to use c++ opencv to convert from RGBA to NNV12](https://forum.opencv.org/t/how-to-use-c-opencv-to-convert-from-rgba-to-nnv12/10605)

<div class="topic-metadata">

**Author:** [@Rorschy](https://forum.opencv.org/u/Rorschy)\
**Replies:** 4\
**Last updated:** [October 21, 2022, 1:16pm UTC](https://forum.opencv.org/t/how-to-use-c-opencv-to-convert-from-rgba-to-nnv12/10605 "2022-10-21T13:16:03Z")

</div>

Hi, I would like to use cvtColor to convert a cv::Mat from RGBA to NV12. However, according to the doc it is only possible from YUV to NV12. I don’t know what color space conversion code to use. The format I need as an…

---

## [cv::cvtColorTwoPlane error with steps](https://forum.opencv.org/t/cv-cvtcolortwoplane-error-with-steps/2808)

<div class="topic-metadata">

**Author:** [@warpstar22](https://forum.opencv.org/u/warpstar22)\
**Replies:** 1\
**Last updated:** [April 19, 2021, 9:32pm UTC](https://forum.opencv.org/t/cv-cvtcolortwoplane-error-with-steps/2808 "2021-04-19T21:32:49Z")

</div>

I made a class using GStreamer to get frames from some cameras. I have both MIPI CSI and UVC cameras. This is on the Jetson Nano so they have some other GstElements. The simplified pipelines: CSI: nvarguscamerasrc ! vid…
