OpenCV: BGR to YUV conversion
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,807 times
Last updated: Mar 05 '15