I have two panoramas, which are already stitched. They were taken four years apart, of the same town from the same location. I want to align them and show them side by side, so that the viewer can easily compare them and see the development of the town. I have manually added some control points in hugin. They can be seen here.

The problem is that hugin aligns the two images badly. Some matching points are hundreds meters off. I guess problem here is that hugin only reads photos from cameras, but not already-stitched images, which have complex distortions. For a panoramic input image, how to find the type of lens and degree of view? Is hugin the wrong tool?

Edit: Just for the record, I have solved the problem using curve fitting manually. The details can be found here.

  • \$\begingroup\$ Are you using autosift-pano? Or just those manual control points? \$\endgroup\$
    – mattdm
    Mar 3, 2013 at 13:29
  • \$\begingroup\$ Auto control point fails because the two images are quite different. Even manually adding control points is hard, and hugin complains that my manual points have low similarity. \$\endgroup\$ Mar 3, 2013 at 15:15
  • \$\begingroup\$ with the weather and light being very different, it will look weird, I think. \$\endgroup\$ Mar 20, 2013 at 7:35
  • 1
    \$\begingroup\$ Very nice comparison photos, and with a slider function too. Thanks for the update and the explaining part at the end of the page. \$\endgroup\$ Mar 20, 2013 at 7:46
  • 1
    \$\begingroup\$ @user149408, I didn't. Hugin and morph.c doesn't exchange any data. The output of Hugin is a text file containing control points, while the input of morph is the transformation model and the image. From control points to transformation model, I use octave to do regression. \$\endgroup\$ Oct 18, 2016 at 3:57

1 Answer 1


How about just cutting the excess material off the new panorama? I don't think any program can nicely align the two panoramas you have, and still keep the both photos the same size. Look at this one, if it is even close to what you wanted? I made it with a simple editing program, mainly a cut-resize-paste job.

  • \$\begingroup\$ Thank you Esa. They look well at a glance, but there are some artifacts. For example, Point 0 and 2 are have almost the same Y coordinate in the upper image, but Point 0 is higher than 2 in lower image. You did gave me a hint. I will try manually transform/wrap them in photoshop. \$\endgroup\$ Mar 3, 2013 at 13:16
  • \$\begingroup\$ The photos are both your own photos. The numbers are in the exact spots that you put them yourself. I did not move anything, only cut and resize, that's all. \$\endgroup\$ Jul 31, 2013 at 19:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.