Using the Douglas–Peucker algorithm for curve decimation to reduce shapes drawn Paint-like to a minimum edge polygon.
Let's have a look at one use case for this algorithm.
Here we have a Paint-like hand drawn shape of a field from a satellite image from Google Maps.
After the algorithm is applied, the set of points that defines the drawing is reduced to a much smaller ordered set representing the reduced polygon shape.
douglas_peucker(points, epsilon)The epsilon parameter is linked to the smoothness of the resulting shape in the curve decimation context, in our use case the parameter dictates the amount of edges the final polygon will have.

