Ramer-Douglas-Peucker algorithm
algorithmsgeometrycartography
Abstraction: Recursive polyline simplification keeping points farther than epsilon
Key points:
- Keeps the endpoints, finds the point farthest from the segment joining them, and recurses on both halves if it is farther than epsilon.
- Otherwise every interior point is dropped; the result is never worse than epsilon from the original.
- One of the earliest cartographic generalization methods; accurate but slower than simpler decimators.
- Epsilon can be set from digitization and quantization error to make it parameter-free.
Connections: Line Simplification ยท Computational Geometry
Source: https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm