Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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);