Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to create Mat from rgb 2d arrays?????

Mat om=new Mat();

double[] rx=new double[3];

for(int i=0;i< sizeA.height;i++)


for(int j=0;j< sizeA.width;j++)





        om.put(i, j, rx);



I am using this code but I am not getting any output for the given code.

r3,g3 and b3 are the rgb arrays & sizeA is Size of the Mat.