Ask Your Question

Revision history [back]

i tested your code. it works without problem with latest OpenCV 3.0.0-dev. try changing vector<Mat> channels; to Mat channels[3]; may be this change solve your problem.