Log in

View Full Version : Aspect ratio recovery


mg262
25th September 2005, 19:33
Here's a thought: suppose that we have adapted a global motion compensater to estimate zoom in x and y separately. Take a clip and find a scene that is a pure zoom (which can be done perfectly on animation and pretty well on a lot of other stuff). Now estimate horizontal and vertical zoom for a pair of frames, and you can recover the aspect ratio -- it's just the ratio of these two numbers. (Because in the original clip, horizontal and vertical zoom factors would have been the same).

You can improve the accuracy by processing more than two frames -- but even so, the number of frames that needs to be processed is quite small so there's quite a lot of computational power available. It may even be that we can do this using existing motion compensators and/or script functions using animate together with resizers. But because Fourier estimation methods essentially treat each dimension separately, I would guess that it wouldn't be hard to adapt them for this.

Something similar but more robust can be done with rotation. In fact, I think this can even be adapted to find the sampling kernel... but enough random thoughts for one post.

E-Male
27th September 2005, 21:52
i daubt it's as easy as it reads

but (semi-)automatic AR-fixing would be great
would help many noobs and save evryone time

mg262
27th September 2005, 23:17
On animation I would guess that it should work pretty effectively, mainly based on the results of this:
http://forum.doom9.org/showthread.php?t=100283
(open up the input and output clips and watch the pan tracking; zoom tracking is more work but -- I think -- much in the same vein). One key point is that because you only need a small amount of data you can probably find something which is a pure zoom, i.e. without any extraneous objects interfering.

On non-animated (must be a better word) material you might well be right... but I really haven't played with such material enough to have any strong opinions.

I'm not sure whether I'll ever implement it... I'm not sure I'll ever need it and I'm somewhat running out of enthusiasm for building filters; but the idea is here for anyone to try if they feel like it. (And I'll be interested to see the results!)

Mug Funky
28th September 2005, 07:26
On non-animated (must be a better word) material you might well be right

live action :)