Convert 3-Channel (BGR) Matrix to 4-Channel (ABGR) Matrix
<p>I'm using the Java libraries to work with OpenCV and I want to convert a 3 channel matrix in BGR format to 4 channels in ABGR. It has to be ABGR a because I am using a <a href="https://docs.oracle.com/javase/7/docs/api/java/awt/image/BufferedImage.html" rel="nofollow">BufferedImage</a> class to display the image
 and the alpha channel must come before the colours.</p>

<p>Within the <a href="http://docs.opencv.org/java/3.1.0/org/opencv/imgproc/Imgproc.html" rel="nofollow">Imgproc</a> class there is a static method <code>cvtColor()</code> but it must take a code value to describe the conversion. In this case I want BGR to ABGR but there doesn't seem to be a conversion code for this, only with alpha after the colour channels <a href="http://docs.opencv.org/java/3.1.0/org/opencv/imgproc/Imgproc.html#COLOR_BGR2BGRA" rel="nofollow">COLOR_BGR2BGRA</a>.</p>

<p>Is there any other way or helper class that will do the conversion that I require?</p>