I tried to search for an existing answer, but couldn't find one that satisfies me (or maybe I just don't get it).
A person asked a similarity question. But I am not see the answer Smoothing motion parameters, and I cant comment on this topic.
I have been working on video stabilization for quite a few weeks now. The algorithm I'm following basically involves 3 steps :
FAST feature detection and Matching between two consecutvie frames
Calculating affine transformation (scale + rotation + translation x + translation y ) from matched keypoints.
- Smooth motion parameters using cubic spline or b-spline.
I calculated affine transform. But I am stuck at smoothing motion parameters.
I have been unable to evaluate spline function to smooth the three parameters in real time processing.
How to get smoothing motion parameters.
For example:
I calculate the motion parameters between 2nd frame and 3rd frame, T2 (r2 : rotation, x2, y2: translation in horizontal and vertical) and then using B-spline to smooth 3 values. But I cannot imagine that how to smoothed them and obtain 3 smoothed values. (assume degree p = 30)
Please help me. Thank you so much