georgmartius / vid.stab

Video stabilization library
http://public.hronopik.de/vid.stab/
Other
842 stars 108 forks source link

added support for negative zoom with optZoom = 2 #47

Closed bjuergens closed 7 years ago

bjuergens commented 7 years ago

Problem:

With optzoom=2 you practically can not zoom out

Solution:

If optzoom=2 and zoom < 0, then zoom is applied after optzoom

use case:

with videos, that are shaky and pre-zoomed, you'd lose a lot if image information when stabilizing without negative zoom. If you apply a negative zoom to those videos, you sometimes see background, but you gain a lot more information at the border of the video.

With my stabilizing-bot, I use a -5% zoom together with optzoom=2. A result video of this configuration can be found here

testing:

My stabilizer-bot already uses this PR: configuration, build

georgmartius commented 7 years ago

Hi Bjoern, thanks for changes. Makes sense. BTW: nice video ;-) Regards, Georg