Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered May 21 '13

Ali Tillawi gravatar image

Thank you :)

click to hide/show revision 2
No.2 Revision

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