Skip to main content
 首页 » 编程设计

python之平滑离散二维坐标

2025年05月04日13tintown

我正在寻找一种平滑坐标的方法。 例如给定坐标

co = [(1,10), (2,10), (3,9), (3,8), (3,7), (2,6), ...] 

我想像这样平滑它们:

我应该使用什么算法或库?

这可能与Smooth a trajectory with splrep有关吗? ?

请您参考如下方法:

Douglas-Peucker algorithm旨在简化折线。我认为有一些 Python 实现。 One example