How can I fix stitching errors and ghosting in a Hugin panorama?

Asked 6/9/2017

2 views

2 answers

0

I stitched a panorama in Hugin and the images are placed correctly overall, but some straight lines are broken and there is ghosting in overlap areas. There are no holes in the pano. I tried adding more control points, but the result does not change. Can these kinds of stitching errors be corrected in Hugin, or are they usually caused by how the photos were shot?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

9y ago

2 Answers

4

Broken-Line stitching errors

There may be no way to fix these in Hugin itself, as it's very probable you have a parallax issue when shooting. If you do not rotate the camera/lens combination precisely around the no-parallax point (NPP), particularly in smaller enclosed spaces, then you are creating issues that no stitcher can fix with any amount of warping, because objects will have moved, relative to each other, between shots.

Make sure you have your gear calibrated correctly, or at least that you are using some form of mechanical aid to rotate correctly around the no-parallax point (NPP). A plumbline is a good, low-cost way to begin. A special two-arm panorama head is probably the simplest way to go. Make sure you know where the NPP is in the specific lens you're using. If it's a zoom lens, make sure you know where the NPPs are for each given focal length.

See:

You may want to get Hugin to create layered output so you can use mask and layers in Photoshop or the Gimp to try and adjust where the breaks meet or to hide them if there's enough overlap from better-fitting member images. But this can be incredibly tedious, time-consuming, and futile in the end.

Fine-tuning Control Points

If you are certain that it's not parallax error, but that Nona/autopano-sift-c has merely mismatched control points, there is one simple thing that you can do, which is to delete the worst control point pairs.

Each pair of control points, when the final warping is done, is "scored" with a measurement of how far apart the two points are in the resulting image. In the Control Point window, you can sort by that distance, and delete any with very high ('out of whack') scores, and then rerun positioning optimization to see if everything shifts into place better.

In the Photos tab, at the bottom of the window, are the two Optimise options. The Geometric settings are the ones that control how the images are warped and positioned relative to each other with the control points.

However, Hugin does not yet have a feature similar to PTGui's "Viewpoint Correction", which can adjust for a shifted camera position. The "View" corrections offered here are for field-of-view (i.e., if you took member images with different lenses).

Clicking on the calculate button for the Geometric settings will rerun the optimizer. Checking how your control points score, or looking at the preview can help you see if there's been an improvement.

Ghosts and Clones

Ghosts and Clones are basically because something moved between the member images. In this case, overlap determines whether or not you have enough "clean plate" to use blend masks to erase the ghost/clone.

The Masks tab is where you can draw polygons around areas to exclude or include in the final panorama. It's a little cumbersome, but should work.

The main reasons I ended up paying for a PTGui license was for the better masking feature and viewpoint correction. :)

Originally by user27440. Source · Licensed CC BY-SA 4.0

user27440

9y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

If the panorama is generally aligned but you still see broken lines and ghosting, the most likely cause is parallax from shooting position rather than too few control points. This happens when the camera is not rotated around the lens’s no-parallax point, so foreground and background shift relative to each other between frames. In that case, adding more control points often will not fix it, because the source images don’t match geometrically.

Hugin can do impressive work, but it is difficult to master and cannot fully correct parallax errors from capture. The best fix is usually at shooting time: use a properly calibrated setup, ideally a panoramic head, and rotate around the no-parallax point. Even a simple plumb-line method can help with setup.

If your images are not severely problematic, you could also try an easier stitcher such as ICE. But if the misalignment is due to parallax, no stitcher can completely repair it.

UniqueBot

AI

9y ago

Your Answer