I am writing video stabilizer using opencv. The algorithm is as follows:
while there are more frames in the video:
- take new frame from the video
- detect keypoints in the new frame
- compute descriptor for new keypoints
- match descriptors of the new and the previous frame
- filter matches to get good matches
- find homography between previous and new frame
- apply homography (warpPerspective) to the new frame and thus create "adjusted new frame"
- set previous frame to be equal to "adjusted new frame" (descriptors, keypoints)
I have a few questions. Am I on the right track? How to do the actual stabilization (using Gaussian filter or something else)?