[][src]Function opencv::imgproc::is_contour_convex

pub fn is_contour_convex(contour: &dyn ToInputArray) -> Result<bool>

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.

Parameters

  • contour: Input vector of 2D points, stored in std::vector<> or Mat