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) {
  final r = calloc<ffi.Double>();
  cvRun(() => cimgproc.cv_matchShapes(contour1.ref, contour2.ref, method, parameter, r, ffi.nullptr));
  final rval = r.value;
  calloc.free(r);
  return rval;
}