toOpenCVMat method

Mat toOpenCVMat(
  1. Resolution resolution, {
  2. int? length,
})

Reads this 1-dimensional list as an OpenCV image.

Implementation

Mat toOpenCVMat(Resolution resolution, {int? length}) {
  length ??= resolution.width * resolution.height;
  return Mat.fromList(resolution.height, resolution.width, MatType.CV_8UC3, asTypedList(length));
}