Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Thank you :)

Thank you :)

I have used this one and it worked well:

IplImage* frame_r = cvCreateImage(size, IPL_DEPTH_8U, 1);
IplImage* frame_g = cvCreateImage(size, IPL_DEPTH_8U, 1);
IplImage* frame_b = cvCreateImage(size, IPL_DEPTH_8U, 1);

    cvSplit(frame, frame_b, frame_g, frame_r, NULL);