LensDB.cpp File Reference

Implementation of wrapper around function for access to lensfun database. More...

#include "LensDB.h"
#include <boost/filesystem.hpp>
#include <iostream>
#include <hugin_utils/stl_utils.h>

Include dependency graph for LensDB.cpp:

Include dependency graph

Go to the source code of this file.

Namespaces

namespace  HuginBase
namespace  HuginBase::LensDB

Defines

#define MIN_LF_VERSION   0x20501
#define GETPATHSTRING(x)   x

Typedefs

typedef boost::filesystem::basic_path<
std::string, boost::filesystem::path_traits > 
basic_path

Functions

bool TranslateProjectionLF2Hugin (const lfLens *lens, BaseSrcPanoImage::Projection &projection)
 translates the projection names from lensfun form into Hugin form
bool TranslateProjectionHugin2LF (BaseSrcPanoImage::Projection projection, lfLens *lens)
 translates the projection names from Hugin form into lensfun form


Detailed Description

Implementation of wrapper around function for access to lensfun database.

Author:
T. Modes

Definition in file LensDB.cpp.


Define Documentation

#define GETPATHSTRING  )     x
 

Definition at line 41 of file LensDB.cpp.

Referenced by HuginBase::LensDB::LensDB::LoadFilesInDir().

#define MIN_LF_VERSION   0x20501
 

Definition at line 31 of file LensDB.cpp.


Typedef Documentation

typedef boost::filesystem::basic_path<std::string, boost::filesystem::path_traits> HuginBase::LensDB::basic_path
 

Definition at line 40 of file LensDB.cpp.

Referenced by HuginBase::LensDB::LensDB::BeginSaveLens(), HuginBase::LensDB::LensDB::LoadFilesInDir(), and HuginBase::LensDB::LensDB::SaveCameraCrop().


Function Documentation

bool TranslateProjectionHugin2LF BaseSrcPanoImage::Projection  projection,
lfLens *  lens
 

translates the projection names from Hugin form into lensfun form

Returns:
true, if conversion was sucessful

Definition at line 469 of file LensDB.cpp.

Referenced by HuginBase::LensDB::LensDB::BeginSaveLens().

bool TranslateProjectionLF2Hugin const lfLens *  lens,
BaseSrcPanoImage::Projection projection
 

translates the projection names from lensfun form into Hugin form

Returns:
true, if conversion was sucessful

Definition at line 409 of file LensDB.cpp.

Referenced by HuginBase::LensDB::LensDB::BeginSaveLens(), and HuginBase::LensDB::LensDB::GetProjection().


Generated on Thu Apr 17 01:25:45 2014 for Hugintrunk by  doxygen 1.3.9.1