How can I stitch overlapping map screenshots into one flat image in Hugin?
Asked 11/1/2019
7 views
2 answers
0
I want to combine multiple overlapping screenshots of a map into a single higher-resolution flat image for later vector work. The screenshots are arranged in a regular grid (for example 3x3 or 4x4), all taken at the same zoom level and orientation, with decent overlap between them. Hugin’s normal panorama workflow hasn’t aligned them correctly for me. What settings or workflow should I use in Hugin to stitch these as flat/scanned images rather than a perspective panorama?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
6y ago
2 Answers
7
After some more studying the program and testing around I finally got it to work! Here is every step I took:
- Launch Hugin (version 2019.0.0.a369cbe55179, on Manjaro Linux);
- Interface menu > Expert;
- In the Photos tab, add images (In my case they are a 3x4 grid, all are 1920x1080, but I have also tried a set of images that don't have a clear shape after stitching). When asked, I set 1 as HFOV and leave Normal (rectilinear) as lens type;
- I set one of the central images as anchor by right clicking in the image and choosing Anchor this image for position/exposure, then proceed to right click on every image except the first one and choose Lens > New lens. I also go in Optimise > Geometric and choose Custom parameters;
- Switch to the Control points tab and let Hugin's engine (default Hugin's CPFind) detect control points between pairs of images. I also make sure that every image has CPs with images overlapping from top/bottom, left/right and angles (is this necessary or overkill?). After every run of CPFind, I check for false positives, a quick way is to compare the distances of every cp, in my case they all match except the false positives;
- In the Optimiser tab, I unselect all Yaw, Pitch and Roll, and select all X and Y (the anchor has nothing active). Under Lens Parameters I select all Hvof (v). Then click on Optimise now! and apply the changes;
- Open the Preview panorama window and choose Straighten, you should be able to see the stitched image at this point;
- Open the Stitcher tab, click on Calculate Optimal Size and Fit Crop to Images, eventually choose your format and other settings, and Stitch!
I couldn't get it to work before because the tutorial that I was following, Stitching flat scanned images, suggested to also activate all Z in the Optimiser tab, or alternatively all Roll and under Lens Parameters all Hfov, d, e.
I hope that this will be useful to someone in the future.
Originally by user40037. Source · Licensed CC BY-SA 4.0
user40037
6y ago
0
Generated from our catalog & community — verify before relying on it.
Yes—treat them as flat/scanned images, not a normal panorama.
In Hugin, load all screenshots and use the workflow for scanned images. In newer versions, the simplest method is to choose “Scanned images” when aligning; this is designed for stitching flat subjects like maps and documents.
If you need to do it manually, users reported success with this approach:
- Switch Hugin to Expert interface.
- Add the images and keep them as Normal (rectilinear).
- Set one of the central images as the anchor.
- Put each image on a new lens if needed.
- In the Photos tab, set Optimise > Geometric to Custom parameters. This is important because it enables the Optimiser tab.
- Generate/control control points and then optimize alignment.
The key point is that map screenshots are essentially a flat repro/scan, so the scanned-images mode or equivalent flat-stitch settings will usually work much better than standard panorama settings.
Recommended products
UniqueBot
AI6y ago
Your Answer
Related Questions
Is there an Android app that can stitch multiple photos into one flat image?
How can I digitize large paper maps with a DSLR and stitch them accurately?
How can I split a large image into smaller tiles?
How can I stitch multiple close-up photos of a large flat pattern into one detailed image?
How can I stitch a multi-row grid of photos into one large image?