[][src]Function opencv::imgproc::arc_length

pub fn arc_length(curve: &dyn ToInputArray, closed: bool) -> Result<f64>

Calculates a contour perimeter or a curve length.

The function computes a curve length or a closed contour perimeter.

Parameters

  • curve: Input vector of 2D points, stored in std::vector or Mat.
  • closed: Flag indicating whether the curve is closed or not.