isContourConvex2f function
Tests a contour convexity.
The function tests whether the input contour is convex or not. The contour must be simple, that is, without self-intersections. Otherwise, the function output is undefined.
https://docs.opencv.org/4.x/d3/dc0/group__imgproc__shape.html#ga8abf8010377b58cbc16db6734d92941b
Implementation
bool isContourConvex2f(VecPoint2f contour) => cimgproc.cv_isContourConvex2f(contour.ref);