Function rten_imageproc::simplify_polyline
source · pub fn simplify_polyline(points: &[PointF], epsilon: f32) -> Vec<PointF>
Expand description
Return a simplified version of the polyline defined by points
.
The result will be a subset of points from the input, which always includes the first and last points.
epsilon
specifies the maximum distance that any removed point may be from
the closest point on the simplified polygon.
This uses the Douglas-Peucker algorithm 1.