Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How can I store a char[] in Matrix Object in OpenCV Java?

Hi, I have unsigned data stored in a char[]. The code is:

    Mat mat1=new Mat();
    mat1.create(640, 512, CvType.CV_16UC1);
    mat1.put(0, 0,chararr);

However, put() function does not support this conversion. Is there any other way I can do it? An answer would be appreciated. Thank you.