OpenCV: BGR to YUV conversion
Is there a way to convert an image from BGR to YUV color space ?
Is there a way to convert an image from BGR to YUV color space ?
In c++ use
cvtColor(img_in, img_out, CV_BGR2YUV);
In python
img_out = cv2.cvtColor(img_in, cv2.COLOR_BGR2YUV)
Asked: 2015-03-04 11:06:06 -0600
Seen: 31,378 times
Last updated: Mar 05 '15
calculate the YUV of a pixel without color space transformation
Understanding YUV to BGR color spaces conversion
How does imshow know the color map of the image?
Conversion from BGR to YUV for Nvidia encoder SDK
How to find the two most dominant colors in an image?
converting 3-channel BGR pic to grayscale BY HAND