I need to stabilize the shakes that a moving camera gets, for example, when a person is walking with the camera in his hand.
Till now, I've been able to detect the features of both frames using the FAST feature detector and calculate the displacement of the points.
What should I do next? Other posts suggest calculating the homography matrix and then using it to warp the new frame but will that not distort the linear motion of the camera as well? I just need to remove the shakes.