arcLength
import { arcLength } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTScurve, closed
FUNCTIONarcLength
RETURN TYPEnumber
Calculates a contour perimeter or a curve length.
The function computes a curve length or a closed contour perimeter.
arcLength(curve: Mat, closed: boolean): number;curveInput vector of 2D points, stored in std::vector or Mat.
closedFlag indicating whether the curve is closed or not.
Returns
The number result.
These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.