Hugintrunk
0.1
|
helper program for working with lens database More...
#include <iostream>
#include <string>
#include <fstream>
#include "hugin_config.h"
#include <filesystem>
#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>
Go to the source code of this file.
Typedefs | |
typedef std::vector < std::filesystem::path > | pathVec |
Functions | |
template<class iteratorType > | |
bool | iterateFileSystem (std::string src, pathVec &projectFiles) |
void | FindPTOFiles (pathVec &projectFiles, std::string src, bool recursive) |
bool | CheckProjectFile (const std::filesystem::path filename) |
static void | usage (const char *name) |
int | main (int argc, char *argv[]) |
helper program for working with lens database
Definition in file hugin_lensdb.cpp.
typedef std::vector<std::filesystem::path> pathVec |
Definition at line 40 of file hugin_lensdb.cpp.
bool CheckProjectFile | ( | const std::filesystem::path | filename | ) |
Definition at line 77 of file hugin_lensdb.cpp.
References HuginBase::PTools::calcCtrlPointErrors(), HuginBase::StandardImageVariableGroups::getLenses(), HuginBase::Panorama::getNrOfImages(), HuginBase::ConstImageVariableGroup::getNumberOfParts(), hugin_utils::getPathPrefix(), HuginBase::Panorama::getSrcImage(), HuginBase::SrcPanoImage::readEXIF(), HuginBase::Panorama::ReadPTOFile(), HuginBase::LensDB::SaveLensDataFromPano(), and HuginBase::Panorama::setSrcImage().
Referenced by main().
void FindPTOFiles | ( | pathVec & | projectFiles, |
std::string | src, | ||
bool | recursive | ||
) |
Definition at line 65 of file hugin_lensdb.cpp.
Referenced by main().
bool iterateFileSystem | ( | std::string | src, |
pathVec & | projectFiles | ||
) |
Definition at line 44 of file hugin_lensdb.cpp.
References hugin_utils::toupper().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 147 of file hugin_lensdb.cpp.
References CheckProjectFile(), HuginBase::LensDB::LensDB::Clean(), HuginBase::LensDB::LensDB::ExportToFile(), FindPTOFiles(), HuginBase::LensDB::LensDB::GetDBFilename(), HuginBase::LensDB::LensDB::GetSingleton(), HuginBase::LensDB::LensDB::ImportFromFile(), HuginBase::LensDB::LensDB::RemoveCamera(), HuginBase::LensDB::LensDB::RemoveLens(), hugin_utils::SplitString(), hugin_utils::stripPath(), hugin_utils::StrTrim(), and usage().
|
static |
Definition at line 123 of file hugin_lensdb.cpp.
References hugin_utils::GetHuginVersion().