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++)
{
rx[0]=r3[i][j];
rx[1]=g3[i][j];
rx[2]=b3[i][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.