Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
cv::Mat rgb=imread("lena.jpg");

cv::Mat yuv;
cv::cvtColor(rgb,yuv,CV_RGB2YUV);