[][src]Function opencv::imgproc::match_shapes

pub fn match_shapes(
    contour1: &dyn ToInputArray,
    contour2: &dyn ToInputArray,
    method: i32,
    parameter: f64
) -> Result<f64>

Compares two shapes.

The function compares two shapes. All three implemented methods use the Hu invariants (see #HuMoments)

Parameters

  • contour1: First contour or grayscale image.
  • contour2: Second contour or grayscale image.
  • method: Comparison method, see #ShapeMatchModes
  • parameter: Method-specific parameter (not supported now).