43 int Read(
const std::string& file);
56 std::vector<std::string>
GetKeys(
const std::string&
section)
const;
61 typedef std::map<std::string, std::string>
IniValues;
A simple parser for ini files, it implements only some basic features.
std::vector< std::string > GetKeys(const std::string §ion) const
returns a vector of all know keys in given section
std::vector< std::string > GetSections() const
returns a vector of all know sections
std::map< std::string, IniValues > m_iniValues
map to store the information from different sections
int Read(const std::string &file)
Reads the given ini file.
bool HasKey(const std::string §ion, const std::string &key) const
Checks if given section/key exists.
void PrintValues() const
for debugging purpose, print all values
std::string GetKey(const std::string §ion, const std::string &key, const std::string &defaultValue) const
returns the value of the given section/key or default value if it does not exists
std::map< std::string, std::string > IniValues
stores the key/values pairs for each section
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.