Thanks, Peter, for tabling an early version of your stitch and the pto file. It's so helpful to have something concrete to work with. However, the pto file won't load without
images, and I don't think you have provided the originals. Never mind, it helps to concentrate the mind if one uses blank dummies of the correct size, and since the
optimiser works only on the control points the missing image data does not affect its operation, though of course functions like fine-tuning can't be used if the data on
which they operate is not there.
However, I find that running the optimiser (a) changes the optimiser values and (b) gives a large error - an average error at optimum resolution of 40 and a maximum
of 2049. All the values of Z, except for the anchor value of 0 for the first image have changed. They are now shown as -1, though selecting them in the Optimiser tab
shows them to be slightly variable, at around -0.96. That means that the remapped images are now all tiny, except for the anchor image, which therefore cannot
possibly be stitched to the remainder. Something has clearly gone wrong, and I suspect the main cause, though not the only one, is that some control points are
wrong.
Now X and Y define the different camera positions in a plane parallel to the plane of the original (which makes them very suitable for this sort of operation) and Z
defines the position of the camera in the direction normal to that plane and with respect to the position of the anchor image (which conveniently can be set at 0, though
it doesn't have to be). While your set-up may not be completely accurate, as a first approximation we can certainly take the values of Z to be the same for all the image.
Thus undoing the first optimisation and then setting all the Z values at 0 and rendering them all non-optimisable should give a better alignment. Actually, the error
figures go up to an average of 49, probably because the non-anchor images are now bigger and the errors between them magnified. But at least all the images are
now present in roughly the right position and of roughly the right size.
The first step is then to clean the control points (in a Windows environment right-click on any image filename in say the Optimiser tab, right-click on 'Lens' and then
select 'Clean control points') and then reoptimise. That reduces the average error to 18. Then I would suggest successively adding into the optimisation:
- roll, since you may not quite move the original map parallel to itself
- Z, since you may have slight variation in the height of the camera
- y and p, since the camera may not be pointing quite vertically downwards
- the lens characteristics, since you are using a camera that we can expect to have perhaps 2% barrel distortion.
In the lens characteristics I do not include the field of view, which seems pretty arbitrary for a photomosaic like this. And, even more important, the fov should not be
allowed to vary per image, since the effect it has in changing the scale of the individual images is already dealt with by allowing Z to vary and allowing both
parameters to be optimised has odd effects. There seems no reason why there shouldn't be only a single lens, optimised for b principally, but for the full set of
parameters a-e for the best results.
Then there are possibilities I can't investigate, like fine tuning.
Personally, I would anchor the most central image, which seems to be image 7, at X=Y=Z=0, but I'm not sure it actually helps much.
Putting all this together gives the attached pto file and screen grab of the optimiser tab. After another round of cleaning control points and then reoptimising the
average/maximum error distances at optimum resolution are 1.3/3.8.
Even so, it looks as though some extra control points might be helpful in the area that is mostly of mostly wording at the bottom of the map. And I would hope to
achieve a straighter and more rectangular frame around the map than is shown in your stitch. You may have enough control points to achieve that, but otherwise it can
be useful to define horizontal and vertical control points. I find putting them on the thin line inside the broader border works well.
I hope this helps. It may be you are mostly interested in the principle of stitching these maps, but otherwise please allow me to ask if you are aware that this map is
available on the internet, e.g. here:
http://maps.nls.uk/view/101571550. That may be an easier source for the constituent images unless you have some particular
reason not to want to use it.
Roger Broadie
========================================
Message Received: Dec 19 2016, 06:12 PM
From: "Peter Cooper"
To: "hugin and other free panoramic software"
Cc:
Subject: [hugin-ptx] Re: Stitching photographs of a large map into a whole map
--
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+...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/hugin-ptx/82557e1e-4ae9-46a8-a0bf-5087f762a156%40googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.