这是行人挤塞的轨迹
正如你所看到的,他/她的头部表现出类似振荡的运动。 所以不是一个完美的曲线,但不是一条线。
是否有可能为这个不规则曲线定义“振幅”和“频率”?
更新 :
到目前为止我尝试了两种不同的方法
第一个是基于计算转折点,然后用它们进行样条。 第二种方法基于unutbu的建议,并使用Ramer-Douglas-Peucker算法。结果如下:
我在RDP中看到的问题是自由参数dist 。 低值(意味着更多细节)意味着产生的轨迹中的振荡。 所以我不得不小心这个参数。 此外, splin曲线更平滑。
你怎么看?
This is the trajectory of a pedestrian moving in jam
As you can see, his/her head perform an oscillation-like movement. So not a perfect sinus curve but neither a line.
Is it possible to define for this irregular curve an "amplitude" and a "frequency"?
UPDATE:
So far I tried two different approaches:
The first one is based on calculating the turning points and then make a spline with them. The second approach is based on the suggestion of unutbu and uses the Ramer-Douglas-Peucker algorithm.The results are as follows:
The problem that I see with the RDP is the free parameter dist. low values (means more details) imply oscillations in the resulting trajectories. So I'm forced to be careful with this parameter. Besides, the splined curve is much more smoother.
What do you think?
更多推荐
发布评论