Skip to content

iosovi/Shape-Polygon-Reduction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shape-Polygon-Reduction

Using the Douglas–Peucker algorithm for curve decimation to reduce shapes drawn Paint-like to a minimum edge polygon.

Algoritghm use case

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.

image

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.

image

Epsilon Parameter

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.

About

Using the Douglas–Peucker algorithm for curve decimation to reduce shapes drawn Paint-like to a minimum edge polygon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages