Anybody have experience stitching panoramas with Hugin (or other software)?
I have one “master” wide shot that shows everything (horiz. FOV ≈ 105°), and a bunch of tighter-zoom images that show detail (horiz. FOV ≈ 34°). All images are 4096 x 2176 pixels.
I want to stitch them all together into one super-resolution photo mosaic. The final image should show everything that’s in the wide shot, but have all the detail from the tight shots.
Basically I want one full-view image like the wide shot, but with the resolution of the tight shots.
I’ve been trying to use Hugin. It wants to treat all images with equal importance, but the alignment between the tighter shots is just never perfect enough and always comes out with ugly seams.
I know the data is there. If I could treat the wide shot as the perfect standard, and align each tight shot against it while ignoring the others, then theoretically the alignment would be perfect at least to within the resolution of the wide shot. (I don’t care whether the final image is re-projected or retains the wide shot’s projection, as long as it looks natural and cohesive.)
I tried removing all control points between pairs of tight shots, leaving only control points tying everything to the wide shot.
This may have mildly improved things, but no matter what I can’t seem to convince Hugin to treat a single image (the wide shot) as “gospel truth” for alignment purposes.
I think maybe one of two things is wrong. Either:
- There’s still too much cross-influence among the tight shots, or
- Maybe Hugin is unwilling to arbitrarily deform the tight shots to match their control points to the wide shot. Maybe it’s just doing a re-projection calculation, feathering the seams, and calling it a day?
I’m currently thinking that I need to arbitrarily deform the tight shots for optimal adherence at all the control points, and just interpolate between them. But I don’t know what software (if any) can do that.
I could spend a month and write my own, but … I have a life.
I’m not afraid of pain or tedium, if the end result is good. I actually tried opening all the raw images in Gimp and using its Cage tool, but it was so hopelessly sloppy that I gave up after “aligning” just one image.
As I’m sure you can tell, these are video game screenshots instead of real photos. There’s a lot of repeating textures and areas of flat color that are messing things up a little.
However, there are advantages too:
- Perfect rotation around parallax point / no camera translation.
- No other movement or change in the scene.
- Perfect mathematical lens (no defects or aberration, etc.)
I was really pushing my GPU getting these screenshots. I had to wait several minutes for all the scenery to load, and I was getting <1 fps (especially if I turned the camera too much).
All that to say, I’m not really sure if it’s feasible to set my game window to 10,000 pixels and retake this as a single screenshot … whereas I feel sure there’s a way to stitch this as a mosaic.
Any thoughts or help would be very much appreciated!