平滑曲线的算法 [英] algorithm to smooth curve
本文介绍了平滑曲线的算法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有很多点的曲线,导致GUI级别的速度变慢。我想应用一种算法,以消除彼此之间距离太近的相邻点(就值而言,因此可以认为是无用的)。
I have a curve with a lot of points, resulting in a slowing down at GUI level. I would like to apply an algorithm which remove adjacent points which are too close of each other (in term of values, and so can be considered useless)
有没有著名的算法能做到这一点?我正在使用C#和ZedGraph
Is there any famous algorithm to do this ? I'm using C# and ZedGraph
推荐答案
您可以使用 Douglas-Peucker 算法可减少点数并保存曲线形状。可以在此处
You can use Douglas-Peucker algorithm to reduce number of points and save the curve shape. C# implementation can be found here
这篇关于平滑曲线的算法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文