hugin_lensdb.cpp File Reference

helper program for working with lens database More...

#include <iostream>
#include <string>
#include <fstream>
#include "hugin_config.h"
#include <boost/filesystem.hpp>
#include <getopt.h>
#include <panodata/Panorama.h>
#include <hugin_utils/stl_utils.h>
#include <lensdb/LensDB.h>
#include <panodata/StandardImageVariableGroups.h>
#include <hugin_base/panotools/PanoToolsUtils.h>

Include dependency graph for hugin_lensdb.cpp:

Go to the source code of this file.




typedef std::vector< fs::pathpathVec


template<class iteratorType>
bool iterateFileSystem (std::string src, pathVec &projectFiles)
void FindPTOFiles (pathVec &projectFiles, std::string src, bool recursive)
bool CheckProjectFile (const fs::path filename)
static void usage (const char *name)
int main (int argc, char *argv[])

Detailed Description

helper program for working with lens database

T. Modes

Definition in file hugin_lensdb.cpp.

Define Documentation


Definition at line 36 of file hugin_lensdb.cpp.

Typedef Documentation

typedef std::vector<fs::path> pathVec

Definition at line 47 of file hugin_lensdb.cpp.

Function Documentation

bool CheckProjectFile ( const fs::path  filename  ) 

Definition at line 84 of file hugin_lensdb.cpp.

References HuginBase::PTools::calcCtrlPointErrors(), cerr, cout, HuginBase::StandardImageVariableGroups::getLenses(), HuginBase::Panorama::getNrOfImages(), hugin_utils::getPathPrefix(), HuginBase::Panorama::getSrcImage(), HuginBase::Panorama::readData(), HuginBase::LensDB::SaveLensDataFromPano(), HuginBase::Panorama::setFilePrefix(), HuginBase::Panorama::setSrcImage(), and AppBase::DocumentData::SUCCESSFUL.

Referenced by main().

void FindPTOFiles ( pathVec projectFiles,
std::string  src,
bool  recursive 

Definition at line 72 of file hugin_lensdb.cpp.

Referenced by main().

template<class iteratorType>
bool iterateFileSystem ( std::string  src,
pathVec projectFiles 

Definition at line 51 of file hugin_lensdb.cpp.

References cout, and hugin_utils::toupper().

int main ( int  argc,
char *  argv[] 

Definition at line 166 of file hugin_lensdb.cpp.

References cerr, CheckProjectFile(), HuginBase::LensDB::LensDB::Clean(), cout, FindPTOFiles(), HuginBase::LensDB::LensDB::GetSingleton(), hugin_utils::SplitString(), hugin_utils::stripPath(), hugin_utils::StrTrim(), and usage().

static void usage ( const char *  name  )  [static]

Definition at line 142 of file hugin_lensdb.cpp.

References cout, and hugin_utils::GetHuginVersion().

Generated on 20 Jan 2018 for Hugintrunk by  doxygen 1.4.7