| 1 | initial version |
Actually when you create a Mat via
Mat inputFrame= new Mat();
it's created empty, i.e. contains zero elements/pixels; then the call to
inputFrame.put(0, 0, buffer);
does nothing since there is no destination memory.
You need to allocate the Mat, e.g if you're sure that buffer contains RGB565 pixels:
Mat inputFrame= new Mat(height, width, CvType.CV_8UC2);