hugin_lensdb.cpp File Reference

helper program for working with lens database More...

#include <iostream>
#include <string>
#include <fstream>
#include "hugin_config.h"
#include <hugin_utils/filesystem.h>
#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.

Typedefs

typedef std::vector< fs::pathpathVec

Functions

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

Author:
T. Modes

Definition in file hugin_lensdb.cpp.


Typedef Documentation

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

Definition at line 40 of file hugin_lensdb.cpp.


Function Documentation

bool CheckProjectFile ( const fs::path  filename  ) 

Definition at line 77 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 65 of file hugin_lensdb.cpp.

Referenced by main().

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

Definition at line 44 of file hugin_lensdb.cpp.

References cout, and hugin_utils::toupper().

int main ( int  argc,
char *  argv[] 
)

Definition at line 159 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 135 of file hugin_lensdb.cpp.

References cout, and hugin_utils::GetHuginVersion().


Generated on 25 Apr 2018 for Hugintrunk by  doxygen 1.4.7