toOpenCVMat method
- Resolution resolution, {
- 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));
}