Commit [02283d] default Maximize Restore History

Use our own database and data mining approach for storing and loading lens data

* The database is populated automatically when stitching panos
* Lens projection, FOV and crop are automatically looked up when adding images
* Distortion and vignetting data can be manually loaded inside Hugin
* New tool lensdb for some basic database maintenance

This changes some dependencies
* New dependency: sqlite3, headers and libray are required
* Obsolete dependency: lensfun, support for lensfun has been dropped
(Lensfun does not provide a stable and predictable interface. In the last
releases there were often undocumented changes to the behaviour and the
database. Under this circumstances it is difficult to maintain a
consistent behaviour on Hugin side for all different versions, so the
support has been dropped.)

tmodes tmodes 2014-04-30

added src/tools/lensdb.cpp
changed CMakeModules/win_bundle.cmake
changed src/hugin1/calibrate_lens/LensCalApp.cpp
changed src/hugin1/ptbatcher/PTBatcherGUI.cpp
changed src/hugin1/hugin/xrc/lensdb_dialogs.xrc
changed src/hugin1/hugin/huginApp.cpp
changed src/hugin1/hugin/PanoPanel.cpp
changed src/hugin1/hugin/PanoOperation.h
changed src/hugin1/hugin/AboutDialog.cpp
changed src/hugin1/hugin/PanoOperation.cpp
changed src/hugin1/base_wx/wxLensDB.cpp
changed src/hugin1/base_wx/wxLensDB.h
changed src/tools/CMakeLists.txt
changed src/tools/align_image_stack.cpp
changed src/tools/pto_gen.cpp
changed src/hugin_base/hugin_utils/utils.h
changed src/hugin_base/hugin_utils/utils.cpp
changed src/hugin_base/lensdb/LensDB.h
changed src/hugin_base/lensdb/LensDB.cpp
changed src/hugin_base/panodata/SrcPanoImage.cpp
changed src/hugin_base/panodata/SrcPanoImage.h
changed src/hugin_base/CMakeLists.txt
changed CMakeLists.txt
copied CMakeModules/FindLensfun.cmake -> CMakeModules/FindSQLite3.cmake
src/tools/lensdb.cpp Diff Switch to side-by-side view
Loading...
CMakeModules/win_bundle.cmake Diff Switch to side-by-side view
Loading...
src/hugin1/calibrate_lens/LensCalApp.cpp Diff Switch to side-by-side view
Loading...
src/hugin1/ptbatcher/PTBatcherGUI.cpp Diff Switch to side-by-side view
Loading...
src/hugin1/hugin/xrc/lensdb_dialogs.xrc Diff Switch to side-by-side view
Loading...
src/hugin1/hugin/huginApp.cpp Diff Switch to side-by-side view
Loading...
src/hugin1/hugin/PanoPanel.cpp Diff Switch to side-by-side view
Loading...
src/hugin1/hugin/PanoOperation.h Diff Switch to side-by-side view
Loading...
src/hugin1/hugin/AboutDialog.cpp Diff Switch to side-by-side view
Loading...
src/hugin1/hugin/PanoOperation.cpp Diff Switch to side-by-side view
Loading...
src/hugin1/base_wx/wxLensDB.cpp Diff Switch to side-by-side view
Loading...
src/hugin1/base_wx/wxLensDB.h Diff Switch to side-by-side view
Loading...
src/tools/CMakeLists.txt Diff Switch to side-by-side view
Loading...
src/tools/align_image_stack.cpp Diff Switch to side-by-side view
Loading...
src/tools/pto_gen.cpp Diff Switch to side-by-side view
Loading...
src/hugin_base/hugin_utils/utils.h Diff Switch to side-by-side view
Loading...
src/hugin_base/hugin_utils/utils.cpp Diff Switch to side-by-side view
Loading...
src/hugin_base/lensdb/LensDB.h Diff Switch to side-by-side view
Loading...
src/hugin_base/lensdb/LensDB.cpp Diff Switch to side-by-side view
Loading...
src/hugin_base/panodata/SrcPanoImage.cpp Diff Switch to side-by-side view
Loading...
src/hugin_base/panodata/SrcPanoImage.h Diff Switch to side-by-side view
Loading...
src/hugin_base/CMakeLists.txt Diff Switch to side-by-side view
Loading...
CMakeLists.txt Diff Switch to side-by-side view
Loading...
CMakeModules/FindLensfun.cmake to CMakeModules/FindSQLite3.cmake
--- a/CMakeModules/FindLensfun.cmake
+++ b/CMakeModules/FindSQLite3.cmake
@@ -1,37 +1,20 @@
-# - Find lensfun headers and libraries
+# - Find sqlite3 headers and library
 
-FIND_PATH(LENSFUN_INCLUDE_DIR lensfun.h
+FIND_PATH(SQLITE3_INCLUDE_DIR sqlite3.h
   /usr/local/include
-  /usr/local/include/lensfun
   /usr/include
   /usr/include/lensfun
-  ${SOURCE_BASE_DIR}/lensfun/include/lensfun
+  ${SOURCE_BASE_DIR}/sqlite3
 )
 
 INCLUDE(FindLibraryWithDebug)
-FIND_LIBRARY_WITH_DEBUG(LENSFUN_LIBRARIES
+FIND_LIBRARY_WITH_DEBUG(SQLITE3_LIBRARIES
   WIN32_DEBUG_POSTFIX d
-  NAMES lensfun
+  NAMES sqlite3
   PATHS ${SYSTEM_LIB_DIRS} 
-        ${SOURCE_BASE_DIR}/lensfun/lib
+        ${SOURCE_BASE_DIR}/sqlite3
 )
 
-IF(NOT ${HUGIN_SHARED})
-    FIND_LIBRARY_WITH_DEBUG(LENSFUN_REGEX_LIBRARIES
-      NAMES tre_regex
-      WIN32_DEBUG_POSTFIX d
-      PATHS ${SYSTEM_LIB_DIRS} 
-            ${SOURCE_BASE_DIR}/lensfun/lib
-  )
-  # base path for searching for glib on windows
-  IF(WIN32)
-    IF(NOT GLIB2_BASE_DIR)
-      SET(GLIB2_BASE_DIR "${SOURCE_BASE_DIR}/glib-2.28.1" CACHE STRING "Base path of glib2 dir." FORCE)
-    ENDIF()
-  ENDIF()
-  FIND_PACKAGE(GLIB2 REQUIRED)
-ENDIF()
-
 INCLUDE(FindPackageHandleStandardArgs)
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(Lensfun DEFAULT_MSG LENSFUN_INCLUDE_DIR LENSFUN_LIBRARIES)
-MARK_AS_ADVANCED(LENSFUN_INCLUDE_DIR LENSFUN_LIBRARIES)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(SQLite3 DEFAULT_MSG SQLITE3_INCLUDE_DIR SQLITE3_LIBRARIES)
+MARK_AS_ADVANCED(SQLITE3_INCLUDE_DIR SQLITE3_LIBRARIES)