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: Mar 4 '15
Seen: 31,938 times
Last updated: Mar 05 '15