Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

HowTo split YCrCb into Y, Cr and Cb?


I've created an Mat Object and split it into three channels:

vector<mat> bgr_planes;
split(frame, bgr_planes);
The content in the Mat frame is:

frame = {Cr0, Y0, Cb0, Y1, Cr2, Y3, Cb2, Y4, Cr4, Y5, Cr4, ...}
How can I separate the Y, Cb and Cr component?

Is there a function?

Best regards, Michael