borderInterpolateAsync function

Future<int> borderInterpolateAsync(
  1. int p,
  2. int len,
  3. int borderType
)

BorderInterpolate computes the source location of an extrapolated pixel.

For further details, please see: https://docs.opencv.org/master/d2/de8/group__core__array.html#ga247f571aa6244827d3d798f13892da58

Implementation

Future<int> borderInterpolateAsync(int p, int len, int borderType) async {
  final ptr = calloc<ffi.Int>();
  return cvRunAsync0(
    (callback) => ccore.cv_borderInterpolate(p, len, borderType, ptr, callback),
    (c) {
      final v = ptr.value;
      calloc.free(ptr);
      return c.complete(v);
    },
  );
}