getRectSubPix function

VARP getRectSubPix(
  1. VARP image,
  2. (int, int) patchSize,
  3. (double, double) center
)

Implementation

VARP getRectSubPix(VARP image, (int, int) patchSize, (double, double) center) {
  final cPatchSize = Size.fromTuple(patchSize);
  final cCenter = Point.fromTuple(center);
  final rval = VARP.fromPointer(c.mnn_cv_getRectSubPix(image.ptr, cPatchSize.ref, cCenter.ref));
  cPatchSize.dispose();
  cCenter.dispose();
  return rval;
}