First time here? Check out the FAQ!
answered 2016-04-22 12:03:16 -0600
there's an easy way to achieve this:
so,
Mat image = ... Mat red = new Mat(); Core.extractChannel(image, red, 2); // btw, it's bgr in opencv, not rgb.