insertAsync method
Insert multiple points into a Delaunay triangulation.
https://docs.opencv.org/4.x/df/dbf/classcv_1_1Subdiv2D.html#a37223a499032ef57364f1372ad0c9c2e
Implementation
Future<int> insertAsync(Point2f pt) async {
final p = calloc<ffi.Int>();
return cvRunAsync0(
(callback) => cimgproc.cv_Subdiv2D_insert(ref, pt.ref, p, callback),
(c) {
final rval = p.value;
calloc.free(p);
return c.complete(rval);
},
);
}