Hmm, I've not dealt with this particular problem before, but I have dealt
with problems involved in successfully converging huge (100+ 24MP)
panoramas.

In either geometric or photometric alignment, the local parameters (img
position & exposure/color) must be "close" before turning on the global
(lens model) parameters or exactly the local extrema you point out will
prevent selection of the right answer. Because the lens params affect every
image at once, their influence over any means of solving the optimization
(gradient descent, annealing, newton-raphson, levenberg-marquadt, ...)
quickly becomes very dominant & will cause the optimizer to walk down wrong
valleys.

I'm sure we've all said "sure, align brightness, color balance, vignetting
and camera response at once" and seen things like the hue drift off at a
fixed rate departing from the anchor image, for example.

First the geometry has to be as close as possible to right. I usually first
align one group of up to about 20 images with only angular parameters (no
translate, no lens).

At this point I'd do camera translate.

Using only these, I then let it do HFOV. Then distortion params 1 by 1, c
then b then a.

Then fix lens, unselect the first 20, and add a new 20 at their perimeter,
continue until all are aligned.

Now a global align is needed... If there are a LOT of images (>= 100),
leaving lens params on is usually a bad idea I find.

For "good" panoramas (tripod and no near foreground objects), this
generally for me achieves an rms error of perhaps 2-4px.

Photometric alignment is a PITA with many images... It has the instability
problems like geometry & distortion params, but MUCH worse for lots of
pics. But for mosaicing I imagine that trying to force the color rms error
under 2/255 isn't such a priority, but I recommend the same basic strategy:
photoalign a group of ~20 pics, brightness first then WB then vignetting &
cam resp.

I don't think I've ever gotten a satisfactory large global photometric that
included lens in the global optimize...

I hope some part of this rambling proves useful!

On Thu, Oct 4, 2018, 2:02 AM paul womack <pwom...@papermule.co.uk> wrote:

> I quite often use/abuse Hugin to align "found images";
> for example aligning a modern photograph of a
> building facade with a vintage photo.
>
> If I find both images on the web, I am likely to have no
> lens/camera parameters at all, and (in general) neither will be square on.
>
> Despite this, Hugin's mosaic mode is clearly
> general enough to handle this, assuming the facade
> is indeed near enough flat.
>
> https://wiki.panotools.org/Stitching_a_photo-mosaic
>
> However, in practice, optimising with so many variables
> can be tricky, and prone to getting stuck in local maxima
> (or is that minima) in the search space.
>
> Can anyone recommend a reliable sequence of
> which parameters to optimise/lock?
>
> I'm assuming that the images should be added, optimised,
> and locked one at a time.
>
>    BugBear
>
> --
> A list of frequently asked questions is available at:
> http://wiki.panotools.org/Hugin_FAQ
> ---
> You received this message because you are subscribed to the Google Groups
> "hugin and other free panoramic software" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to hugin-ptx+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/hugin-ptx/5BB5D73E.4000807%40papermule.co.uk
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/CADkOXhJaUNGMnE1x_COpvpfqobw_ymD510wMyx9MkNmqK9h8Xw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to