Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

easy!

Mat src=imread("my.png");
Mat planes[3];
split(src,planes);  // planes[2] is the red channel