convexityDefects function
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(() => cffi.ConvexityDefects(contour.ref, hull.ref, convexityDefects!.ref));
return convexityDefects;
}