25#ifndef _PANODATA_PTSCRIPTPARSING_H
26#define _PANODATA_PTSCRIPTPARSING_H
30#include <vigra/diff2d.hxx>
37namespace PTScriptParsing {
48 bool getIntParam(T & value,
const std::string & line,
const std::string & name);
51 bool readVar(Variable & var,
int &
link,
const std::string & line);
59 bool getDoubleParam(
double &
d,
const std::string & line,
const std::string & name);
62 const std::string & line,
const std::string & var);
68 std::map<std::string, double>
vars;
69 std::map<std::string, int>
links;
87 explicit ImgInfo(
const std::string & line)
97 void parse(
const std::string & line);
112 bool getParam(T & value,
const std::string & line,
const std::string & name)
118 std::istringstream
is(
s);
125 bool getIntParam(T & value,
const std::string & line,
const std::string & name)
131 std::istringstream
is(
s);
bool getIntParam(T &value, const std::string &line, const std::string &name)
bool getPTDoubleParam(double &value, int &link, const std::string &line, const std::string &var)
bool readVar(Variable &var, int &link, const std::string &line)
bool getDoubleParam(double &d, const std::string &line, const std::string &name)
bool getPTParam(std::string &output, const std::string &line, const std::string ¶meter)
helper functions for parsing of a script line
mainly consists of wrapper around the pano tools library, to assist in ressource management and to pr...
ImgInfo(const std::string &line)
std::map< std::string, int > links
std::string flatfieldname
std::map< std::string, double > vars
static const char * varnames[]
void parse(const std::string &line)
static double defaultValues[]
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.