Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.