getMatrix function
Converts an image with the given width
and height
into an OpenCV matrix.
The matrix must be disposed using freeMatrix.
Implementation
Pointer<Mat> getMatrix(int height, int width, Pointer<Uint8> bytes) =>
nativeLib.Mat_createFrom(height, width, bytes);