First time here? Check out the FAQ!
answered 2013-03-25 03:04:04 -0600
You need to allocate a Mat of the appropriate size and type and then use Mat.put() method:
Mat
Mat.put()
byte buf[] = new byte[100]; //... Mat m = new Mat(1, 100, CvType.CV_8UC1); m.put(0, 0, buf);