First time here? Check out the FAQ!
answered 2014-08-16 00:47:18 -0600
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);