region method

Mat region(
  1. Rect rect
)

Implementation

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