|
Hugintrunk
0.1
|
program to manipulate variables for scripting More...
#include <fstream>#include <sstream>#include <getopt.h>#include <panodata/Panorama.h>#include <panodata/ImageVariableTranslate.h>#include <panodata/ImageVariableGroup.h>#include <panodata/StandardImageVariableGroups.h>#include "hugin_utils/utils.h"#include "panodata/ParseExp.h"#include "panodata/image_variables.h"
Go to the source code of this file.
Functions | |
| void | ParseSingleOptVar (Parser::ParseVarVec &varVec, const std::string &s, std::ostream &errorStream) |
| void | ParseSingleLinkVar (Parser::ParseVarVec &varVec, const std::string &s, std::ostream &errorStream) |
| void | AddToOptVec (HuginBase::OptimizeVector &optVec, std::string varname, size_t imgNr, std::set< size_t > refImgs, bool linkRefImgsYaw, bool linkRefImgsPitch, bool linkRefImgsRoll, std::vector< std::set< std::string > > groupedVars) |
| void | RemoveFromOptVec (HuginBase::OptimizeVector &optVec, std::string varname, size_t imgNr, std::vector< std::set< std::string > > groupedVars) |
| bool | ParseCoordinateRelativ (const std::string &s, double &val, bool &relativ) |
| void | SetCropToImages (const std::string &s, HuginBase::Panorama &pano, HuginBase::UIntSet &imgs) |
| void | SetCrop (HuginBase::Panorama &pano, const std::string &crop) |
| void | EnableImages (HuginBase::Panorama &pano, const std::string &imageList, const bool enable) |
| static void | usage (const char *name) |
| int | main (int argc, char *argv[]) |
program to manipulate variables for scripting
Definition in file pto_var.cpp.
| void AddToOptVec | ( | HuginBase::OptimizeVector & | optVec, |
| std::string | varname, | ||
| size_t | imgNr, | ||
| std::set< size_t > | refImgs, | ||
| bool | linkRefImgsYaw, | ||
| bool | linkRefImgsPitch, | ||
| bool | linkRefImgsRoll, | ||
| std::vector< std::set< std::string > > | groupedVars | ||
| ) |
| void EnableImages | ( | HuginBase::Panorama & | pano, |
| const std::string & | imageList, | ||
| const bool | enable | ||
| ) |
Definition at line 405 of file pto_var.cpp.
References HuginBase::Panorama::activateImage(), HuginBase::Panorama::getNrOfImages(), hugin_utils::SplitString(), and hugin_utils::stringToInt().
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 501 of file pto_var.cpp.
References AddToOptVec(), HuginBase::Panorama::checkRefOptStatus(), HuginBase::PanoramaOptions::colorReferenceImage, EnableImages(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptimizeVector(), HuginBase::Panorama::getOptions(), hugin_utils::GetOutputFilename(), hugin_utils::getPathPrefix(), HuginBase::Panorama::getRefImages(), HuginBase::PanoramaOptions::optimizeReferenceImage, Parser::PanoParseExpression(), ParseSingleLinkVar(), ParseSingleOptVar(), Parser::ParseVariableString(), HuginBase::Panorama::ReadPTOFile(), RemoveFromOptVec(), SetCrop(), HuginBase::Panorama::setOptimizerSwitch(), HuginBase::Panorama::setOptimizeVector(), HuginBase::Panorama::setOptions(), HuginBase::Panorama::setPhotometricOptimizerSwitch(), hugin_utils::stringToInt(), hugin_utils::stripPath(), HuginBase::Panorama::updateOptimizeVector(), usage(), and HuginBase::Panorama::WritePTOFile().
| bool ParseCoordinateRelativ | ( | const std::string & | s, |
| double & | val, | ||
| bool & | relativ | ||
| ) |
Definition at line 245 of file pto_var.cpp.
References hugin_utils::stringToDouble(), and hugin_utils::stringToInt().
Referenced by SetCropToImages().
| void ParseSingleLinkVar | ( | Parser::ParseVarVec & | varVec, |
| const std::string & | s, | ||
| std::ostream & | errorStream | ||
| ) |
Definition at line 58 of file pto_var.cpp.
References Parser::ParseVar::imgNr, and Parser::ParseVarNumber().
Referenced by main().
| void ParseSingleOptVar | ( | Parser::ParseVarVec & | varVec, |
| const std::string & | s, | ||
| std::ostream & | errorStream | ||
| ) |
Definition at line 38 of file pto_var.cpp.
References Parser::ParseVar::flag, and Parser::ParseVarNumber().
Referenced by main().
| void RemoveFromOptVec | ( | HuginBase::OptimizeVector & | optVec, |
| std::string | varname, | ||
| size_t | imgNr, | ||
| std::vector< std::set< std::string > > | groupedVars | ||
| ) |
| void SetCrop | ( | HuginBase::Panorama & | pano, |
| const std::string & | crop | ||
| ) |
Definition at line 354 of file pto_var.cpp.
References fill_set(), HuginBase::Panorama::getNrOfImages(), SetCropToImages(), hugin_utils::SplitString(), hugin_utils::stringToUInt(), and hugin_utils::StrTrim().
| void SetCropToImages | ( | const std::string & | s, |
| HuginBase::Panorama & | pano, | ||
| HuginBase::UIntSet & | imgs | ||
| ) |
Definition at line 277 of file pto_var.cpp.
References HuginBase::Panorama::changeFinished(), HuginBase::SrcPanoImage::getHeight(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getSrcImage(), HuginBase::SrcPanoImage::getWidth(), ParseCoordinateRelativ(), HuginBase::SrcPanoImage::setSize(), HuginBase::Panorama::setSrcImage(), hugin_utils::SplitString(), and hugin_utils::stringToInt().
Referenced by SetCrop().
|
static |
Definition at line 437 of file pto_var.cpp.
References hugin_utils::GetHuginVersion().
1.8.5