Ask Your Question

Revision history [back]

B-spline smoothing

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

image description

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