getMatrix function

Pointer<Mat> getMatrix(
  1. int height,
  2. int width,
  3. Pointer<Uint8> bytes
)

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);