Video Stabilization with spin product OpenCV

I am trying to calculate amount of stability of video ,how can I do this?