First time here? Check out the FAQ!
answered 2014-05-13 05:02:50 -0600
Why don't you convert the image first into YCbCr and then use split?
Mat YCbCr; cvtColor(frame, YCbCr, COLOR_BGR2YCrCb); vector<mat> ycbcr_planes; split(frame, ycbcr_planes);