1 | initial version |
here's split:
Mat bgr = imread("my.png");
Mat yuv;
cvtColor(bgr,yuv,CV_BGR2YUV);
Mat chan[3];
split(yuv,chan);
Mat y = chan[0];
Mat u = chan[1];
Mat v = chan[2];
2 | No.2 Revision |
here's split:
Mat bgr = imread("my.png");
Mat yuv;
cvtColor(bgr,yuv,CV_BGR2YUV);
Mat chan[3];
split(yuv,chan);
Mat y = chan[0];
Mat u = chan[1];
Mat v = chan[2];
3 | No.3 Revision |
here's split:
Mat bgr = imread("my.png");
Mat yuv;
cvtColor(bgr,yuv,CV_BGR2YUV);
ycbcr;
cvtColor(bgr,ycbcr,CV_BGR2YCBCR);
Mat chan[3];
split(yuv,chan);
split(ycbcr,chan);
Mat y = chan[0];
Mat u cb = chan[1];
Mat v cr = chan[2];