First time here? Check out the FAQ!
answered 2013-04-26 09:12:13 -0600
cv::Mat rgb=imread("lena.jpg"); cv::Mat yuv; cv::cvtColor(rgb,yuv,CV_RGB2YUV);