35 AdvancedOptions::const_iterator
it = opts.find(name);
39 const std::string value(
it->second);
40 if (value ==
"true" || value ==
"1")
54 AdvancedOptions::const_iterator
it = opts.find(name);
68 AdvancedOptions::const_iterator
it = opts.find(name);
75 return static_cast<float>(value);
Helper class for storing different options.
std::map< std::string, std::string > AdvancedOptions
void SetAdvancedOption(AdvancedOptions &opts, const std::string &name, const bool value)
store the option with name in AdvancedOptions
bool GetAdvancedOption(const AdvancedOptions &opts, const std::string &name, const bool defaultValue)
check if given option is saved and return its boolean value, otherwise return defaultValue
mainly consists of wrapper around the pano tools library, to assist in ressource management and to pr...
std::string doubleToString(double d, int digits)
convert a double to a string, suitable for display within a GUI.
bool stringToDouble(const STR &str_, double &dest)
convert a string to a double, ignore localisation.
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.