Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

try like this:

Mat y,cr,cb; // your ycrcb channels. and no, no IplImages or CvMat, please...

Mat chan[3] = { y,cr,cb };
Mat ycrcb;  // output

merge(chan, 3, ycrcb);

Mat bgr;
cvtColor(ycrcb, bgr, CV_YCrCb2BGR);