Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
116 views
in Technique[技术] by (71.8m points)

拟合问题求解

A 、B 两个矩形(大小不一定相等),A 中有 20 个点 a1, a2, a3, ......a20 ,B 中有 20 个点 b1, b2, b3, ......b20;
A 中的点和 B 中的点有映射关系,即如果 a1 和 b1 重叠的话,其他对应点大致接近;
现使用一种算法:移动 B 的位置使得 a1-b1, a2-b2, ....a20-b20 的距离和尽可能小,即 A 、B 中对应的点尽可能接近


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

你这个问题不很清晰把,A和B的坐标知道吗?知道的话不是完全重合最小吗?不知道的话,那是要算法还是要结果?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...