getEdgeAsync method

Future<int> getEdgeAsync(
  1. int edge,
  2. int nextEdgeType
)

Returns one of the edges related to the given edge.

nextEdgeType : Parameter specifying which of the related edges to return. The following values are possible:

https://docs.opencv.org/4.x/df/dbf/classcv_1_1Subdiv2D.html#af73f08576709bad7a36f8f8e5fc43c84

Implementation

Future<int> getEdgeAsync(int edge, int nextEdgeType) async {
  final p = calloc<ffi.Int>();
  return cvRunAsync0((callback) => cimgproc.cv_Subdiv2D_getEdge(ref, edge, nextEdgeType, p, callback), (c) {
    final rval = p.value;
    calloc.free(p);
    return c.complete(rval);
  });
}