algorithm - 用直线分解曲线的最简单算法是什么?

标签 algorithm image-processing graph-algorithm

我在平面上有一组点 (x, y) 来描述某条曲线。 用预定数量的直线分解曲线的最简单算法是什么?

float x[100], y[100]; // points of curve
int lines = 5;        // straight lines
float x_l[lines + 1], y_l[lines + 1]; // required to find 6 points for 5 lines

要求最优分解,使曲线所有点与直线的标准差最小。

最佳答案

我不知道这是不是最简单的...

佩雷斯、胡安-卡洛斯;维达尔,恩里克。数字化曲线的最佳多边形近似。 模式识别字母, 1994, 15.8: 743-750.

Given N ordered points in the plane and a constant M < N, an efficient algorithm is proposed to find M points, among those given, which define a polygonal curve that is a globally optimal approximation to the given points. The algorithm accommodates any properly defined error measure and the use of the most popular of these measures is studied in detail to maximize the computational efficiency. Experiments are reported showing the performance and usefulness of the proposed method.

关于algorithm - 用直线分解曲线的最简单算法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37767274/

相关文章:

algorithm - 找到所有相邻图节点组

python - 深度优先搜索在 python 错误 : Key Error 7

.net - 比较图像以发现差异

image-processing - 图像匹配,仿射扭曲

algorithm - 表示非方形棋盘游戏的数据结构

c++ - 多个内部分配 - 它是如何工作的?

java - 加到 n 的 1 + 2 的所有组合

opencv - 如何确定线条的宽度?

algorithm - Dijkstras 算法似乎不起作用,我的理解一定有缺陷

algorithm - 路径查找 : calculating the optimal path, 其中 “optimal” 表示给定时间内的最大距离