Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you have to allocate actual memory for your Mat, before you can fill it with put() calls:

Mat om=new Mat(sizeA, CvType.CV_64FC3);

then, note that it's BGR in opencv, not RGB, so you should use:

    rx[0]=b3[i][j];
    rx[1]=g3[i][j];
    rx[2]=r3[i][j];