Smoothing motion parameters

末鹿安然 提交于 2019-12-10 10:51:02

问题


I have been working on video stabilization for quite a few weeks now. The algorithm I'm following basically involves 3 steps :-

1. FAST feature detection and Matching
2. Calculating affine transformation (scale + rotation + translation x + translation y ) from matched keypoints
3. Smooth motion parameters using cubic spline or b-spline.

I have been able to calculate affine transform. But I am stuck at smoothing motion parameters. I have been unable to evaluate spline function to smooth the three parameters.

Here is a graph for smoothed data points

Any suggestion or help as to how can I code to get a desired result as shown in the graph?


回答1:


Here is the code that calculate the points on the curve B-spline Curves

But now the code will use all control points as transform parameters to formulate. I think i will run in post-processing (not real time).

Did you run B spline smoothing in real time?



来源:https://stackoverflow.com/questions/25400319/smoothing-motion-parameters

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!