From PanoTools.org Wiki
Jump to: navigation, search

lensdb is a maintenance tools for Hugins camera and lens database.

The database is automatically filled when stitching a project file from Hugin. Entries can also manually added from Hugin and calibrate_lens_gui.

The information are used when adding image files to a project. Distortion and vignetting data can also manually loaded inside Hugin.


 lensdb [--recursive] --populate BASEPATH

Fills the database with information from all pto files in BASEPATH. With the switch --recursive the search goes also into all subfolders.

 lensdb --compress

Compresses the database by replacing all single entries with the average values.

Database maintenance

lensdb provides also some functions to maintain the database. Use these functions with responsibility.

 lensdb --export-database=FILENAME

Exports all entries of the database into the given file.

 lensdb --import-from-file=FILENAME

Import the entries in the given file into the existing database.

 lensdb --remove-lens=LENS

Removes all entries for the given lens from the database. For cameras with fixed lens use MAKER|MODEL for the string.

 lensdb --remove-camera=MAKER|MODEL

Removes all entries for the given camera from the database.