matchShapes function

double matchShapes(
  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

double matchShapes(VecPoint contour1, VecPoint contour2, int method, double parameter) {
  return cvRunArena<double>((arena) {
    final r = arena<ffi.Double>();
    cvRun(() => cffi.MatchShapes(contour1.ref, contour2.ref, method, parameter, r));
    return r.value;
  });
}