matchShapesAsync function

Future<double> matchShapesAsync(
  1. VecPoint contour1,
  2. VecPoint contour2,
  3. int method,
  4. double parameter,
)

Compares two shapes. method: ShapeMatchModes For further details, please see: https:///docs.opencv.org/4.x/d3/dc0/group__imgproc__shape.html#gaadc90cb16e2362c9bd6e7363e6e4c317

Implementation

Future<double> matchShapesAsync(VecPoint contour1, VecPoint contour2, int method, double parameter) async {
  final p = calloc<ffi.Double>();
  return cvRunAsync0(
    (callback) => cimgproc.cv_matchShapes(contour1.ref, contour2.ref, method, parameter, p, callback),
    (c) {
      final rval = p.value;
      calloc.free(p);
      return c.complete(rval);
    },
  );
}