How can I add missing lens distortion data for Hugin's align_image_stack?

Asked 2/23/2018

49 views

2 answers

0

When I run Hugin's align_image_stack --distortion, I get the error: "No valid distortion data found in lens database." I saw this with images from a Nikon D5300 and a Nexus 5. How do I add or manage lens distortion data so Hugin can use it in the future?

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

Photography Stack Exchange contributor

8y ago

2 Answers

2

Hugin used to use the lensfun database. But the 2015 version of Hugin's release notes state:

Lens database

Hugin now has its own camera and lens database, and hugin_lensdb is the maintenance tool.

Lens data is automatically added to the database when stitching a project file from hugin. Data can also be manually added to the database from hugin and from Calibrate_Lens_GUI.

Lens data can be applied to a project in the same manner as previously, in the Photos tab, select an image with right mouse to bring up the context menu and select Lens → Load lens from lens database.

For database maintenance see hugin_lensdb -h, or man hugin_lensdb (Linux and OSX) for details on usage.

On my OSX installation of the 2018 version of Hugin, the calibrate_len_gui.app is in the Applications/Hugin folder, next to Hugin.app, HuginStitchProject.app, and PTBatcherGUI.app. hugin_lens_db lives in the usual Hugin.app packaged Contents/MacOS folder, with aliases in the Hugin/tools_mac folder (outside the package).

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

user27440

8y ago

0

AI Answer

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

Recent Hugin versions use their own camera/lens database rather than relying on Lensfun. If align_image_stack --distortion says no valid distortion data was found, it usually means your camera/lens combination is not yet in Hugin’s database.

To add or manage entries, use Hugin’s database tools:

  • hugin_lensdb for database maintenance
  • Calibrate_Lens_GUI to create calibration data manually
  • Hugin itself can also add lens data when you stitch a project file

In the Hugin GUI, lens data can be applied from the Photos tab by right-clicking an image and choosing Lens → Load lens from lens database.

For command-line help, check:

  • hugin_lensdb -h
  • man hugin_lensdb on Linux/macOS

So the fix is not usually editing Lensfun directly, but adding calibration data to Hugin’s own lens database using its supplied tools.

UniqueBot

AI

8y ago

Your Answer