edgeOrgAsync method

Future<(int, Point2f)> edgeOrgAsync(
  1. int edge
)

Implementation

Future<(int rval, Point2f orgpt)> edgeOrgAsync(int edge) async {
  final pp = calloc<cvg.CvPoint2f>();
  final p = calloc<ffi.Int>();
  return cvRunAsync0(
    (callback) => cimgproc.cv_Subdiv2D_edgeOrg(ref, edge, pp, p, callback),
    (c) {
      final rval = (p.value, Point2f.fromPointer(pp));
      calloc.free(p);
      return c.complete(rval);
    },
  );
}