First time here? Check out the FAQ!
answered 2013-05-18 11:50:37 -0600
easy!
Mat src=imread("my.png"); Mat planes[3]; split(src,planes); // planes[2] is the red channel