Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions | Variables
PanoOptionsFromIni.cpp File Reference
#include "PanoOptionsFromIni.h"
#include "IniParser.h"
#include <cmath>
#include <algorithms/nona/CenterHorizontally.h>
#include <algorithms/basic/StraightenPanorama.h>
#include <algorithms/nona/FitPanorama.h>
#include <algorithms/basic/CalculateOptimalScale.h>
#include <algorithms/basic/CalculateOptimalROI.h>
#include <algorithms/basic/LayerStacks.h>
#include <algorithms/basic/CalculateMeanExposure.h>
Include dependency graph for PanoOptionsFromIni.cpp:

Go to the source code of this file.

Classes

struct  PanoProperties
 

Functions

void ReadProjectionNames ()
 
bool CheckString (const std::string &variable, const std::string &operatorString, const std::string &value)
 check if given string matches the value with the corresponding operator More...
 
template<class Number >
bool CheckNumber (const Number variable, const std::string &operatorString, const Number value)
 general number comparison function More...
 
bool CheckInt (const int variable, const std::string &operatorString, const std::string &stringValue)
 check if given integer matches the condition (operator and value) More...
 
bool CheckDouble (const double variable, const std::string &operatorString, const std::string &stringValue)
 check if given double matches the condition (operator and value) More...
 
bool CheckCondition (const std::string &condition, const HuginBase::Panorama &pano, const PanoProperties &panoProps)
 check if given condition is fulfilled by given panorama and PanoProperties More...
 
void SetProjection (const std::string &projectionString, HuginBase::PanoramaOptions &options)
 
void SetFOV (const std::string &fov, HuginBase::Panorama &pano, HuginBase::PanoramaOptions &options)
 
void SetCanvas (const std::string &canvas, HuginBase::Panorama &pano, HuginBase::PanoramaOptions &options)
 
void SetCrop (const std::string &cropString, HuginBase::Panorama &pano, HuginBase::PanoramaOptions &options)
 
void SetExposure (const std::string &exposure, HuginBase::Panorama &pano, HuginBase::PanoramaOptions &options)
 
void SetOutputType (const std::string &outputType, HuginBase::PanoramaOptions &options)
 
void SetLDRCompression (const std::string ldrCompression, HuginBase::PanoramaOptions &options)
 
void SetHDRCompression (const std::string hdrCompression, HuginBase::PanoramaOptions &options)
 
void ProcessSection (const IniParser &iniParser, const std::string &section, HuginBase::Panorama &pano, HuginBase::PanoramaOptions &options, const PanoProperties &panoProps)
 process the given section, check if all conditions are fulfilled and if so apply all wished settings More...
 
HuginBase::PanoramaOptions ReadPanoramaOptionsFromIni (const std::string &iniFile, HuginBase::Panorama &pano)
 read settings from given ini file and apply wished settings if they are applicable More...
 

Variables

static std::vector< std::string > projectionNames
 
static std::map
< HuginBase::BaseSrcPanoImage::Projection,
std::string > 
lensTypeNames
 

Function Documentation

bool CheckCondition ( const std::string &  condition,
const HuginBase::Panorama pano,
const PanoProperties panoProps 
)
bool CheckDouble ( const double  variable,
const std::string &  operatorString,
const std::string &  stringValue 
)

check if given double matches the condition (operator and value)

Definition at line 145 of file PanoOptionsFromIni.cpp.

References hugin_utils::stringToDouble().

Referenced by CheckCondition().

bool CheckInt ( const int  variable,
const std::string &  operatorString,
const std::string &  stringValue 
)

check if given integer matches the condition (operator and value)

Definition at line 133 of file PanoOptionsFromIni.cpp.

References hugin_utils::stringToInt().

Referenced by CheckCondition().

template<class Number >
bool CheckNumber ( const Number  variable,
const std::string &  operatorString,
const Number  value 
)

general number comparison function

Definition at line 102 of file PanoOptionsFromIni.cpp.

bool CheckString ( const std::string &  variable,
const std::string &  operatorString,
const std::string &  value 
)

check if given string matches the value with the corresponding operator

Definition at line 76 of file PanoOptionsFromIni.cpp.

Referenced by CheckCondition().

void ProcessSection ( const IniParser iniParser,
const std::string &  section,
HuginBase::Panorama pano,
HuginBase::PanoramaOptions options,
const PanoProperties panoProps 
)
HuginBase::PanoramaOptions ReadPanoramaOptionsFromIni ( const std::string &  iniFile,
HuginBase::Panorama pano 
)
void ReadProjectionNames ( )
void SetCanvas ( const std::string &  canvas,
HuginBase::Panorama pano,
HuginBase::PanoramaOptions options 
)
void SetCrop ( const std::string &  cropString,
HuginBase::Panorama pano,
HuginBase::PanoramaOptions options 
)
void SetExposure ( const std::string &  exposure,
HuginBase::Panorama pano,
HuginBase::PanoramaOptions options 
)
void SetFOV ( const std::string &  fov,
HuginBase::Panorama pano,
HuginBase::PanoramaOptions options 
)
void SetHDRCompression ( const std::string  hdrCompression,
HuginBase::PanoramaOptions options 
)
void SetLDRCompression ( const std::string  ldrCompression,
HuginBase::PanoramaOptions options 
)
void SetOutputType ( const std::string &  outputType,
HuginBase::PanoramaOptions options 
)
void SetProjection ( const std::string &  projectionString,
HuginBase::PanoramaOptions options 
)

Variable Documentation

std::map<HuginBase::BaseSrcPanoImage::Projection, std::string> lensTypeNames
static

Definition at line 49 of file PanoOptionsFromIni.cpp.

std::vector<std::string> projectionNames
static

Definition at line 48 of file PanoOptionsFromIni.cpp.