Function approximate_polygon
pub fn approximate_polygon(
contour: &Contour,
epsilon: f64,
) -> Result<Contour, VisionError>Expand description
Simplifies a closed contour with Ramer–Douglas–Peucker approximation.
pub fn approximate_polygon(
contour: &Contour,
epsilon: f64,
) -> Result<Contour, VisionError>Simplifies a closed contour with Ramer–Douglas–Peucker approximation.