approxPolyDPAsync function
ApproxPolyDP approximates a polygonal curve(s) with the specified precision.
For further details, please see:
https:///docs.opencv.org/master/d3/dc0/group__imgproc__shape.html#ga0012a5fdaea70b8a9970165d98722b4c
Implementation
Future<VecPoint> approxPolyDPAsync(VecPoint curve, double epsilon, bool closed) async {
final vec = calloc<cvg.VecPoint>();
return cvRunAsync0(
(callback) => cimgproc.cv_approxPolyDP(curve.ref, epsilon, closed, vec, callback),
(c) {
return c.complete(VecPoint.fromPointer(vec));
},
);
}