region method

Mat region(
  1. Rect rect
)

Implementation

Mat region(Rect rect) {
  cvAssert(rect.right <= width && rect.bottom <= height);
  final p = calloc<cvg.Mat>();
  cvRun(() => cffi.Mat_Region(ref, rect.ref, p));
  final dst = Mat._(p);
  return dst;
}