convexityDefects function

Mat convexityDefects(
  1. VecPoint contour,
  2. Mat hull, {
  3. Mat? convexityDefects,
})

ConvexityDefects finds the convexity defects of a contour.

For further details, please see: https:///docs.opencv.org/master/d3/dc0/group__imgproc__shape.html#gada4437098113fd8683c932e0567f47ba

Implementation

Mat convexityDefects(VecPoint contour, Mat hull, {Mat? convexityDefects}) {
  convexityDefects ??= Mat.empty();
  cvRun(() => cimgproc.ConvexityDefects(contour.ref, hull.ref, convexityDefects!.ref));
  return convexityDefects;
}