Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

no, please instead use:

Mat dst = new Mat();
Imgproc.cvtColor(src,dst,Imgproc.BGRA2BGR);
//convertTo changes the depth/per_pixel_type, not the channel count.