Low cost rototranslational video stabilization algorithm