[][src]Function opencv::imgproc::intersect_convex_convex

pub fn intersect_convex_convex(
    _p1: &dyn ToInputArray,
    _p2: &dyn ToInputArray,
    _p12: &mut dyn ToOutputArray,
    handle_nested: bool
) -> Result<f32>

Finds intersection of two convex polygons

Parameters

  • _p1: First polygon
  • _p2: Second polygon
  • _p12: Output polygon describing the intersecting area
  • handleNested: When true, an intersection is found if one of the polygons is fully enclosed in the other. When false, no intersection is found. If the polygons share a side or the vertex of one polygon lies on an edge of the other, they are not considered nested and an intersection will be found regardless of the value of handleNested.

Returns

Absolute value of area of intersecting polygon

Note: intersectConvexConvex doesn't confirm that both polygons are convex and will return invalid results if they aren't.

C++ default parameters

  • handle_nested: true