26#ifndef _PANODATA_PANORAMAVARIABLE_H
27#define _PANODATA_PANORAMAVARIABLE_H
53 Variable(
const std::string & name =
"" ,
55 : name(name), value(val)
58 Variable(
const std::string & name,
double val = 0.0)
59 : name(name), value(val)
67 virtual std::ostream & print(std::ostream & o)
const;
98 {
return m_link >= 0; }
141 virtual std::ostream& printLink(std::ostream & o,
unsigned int link)
const;
A lens variable can be linked.
void setLinked(bool l=true)
LensVariable(const std::string &name, double value, bool link=false)
LinkedVariable(const std::string &name="", double val=0.0, int link=-1)
a variable has a value and a name.
virtual std::ostream & print(std::ostream &o) const
print this variable
const std::string & getName() const
Variable(const std::string &name, double val=0.0)
mainly consists of wrapper around the pano tools library, to assist in ressource management and to pr...
std::vector< VariableMap > VariableMapVector
std::map< std::string, LensVariable > LensVarMap
void fillVariableMap(VariableMap &vars)
fill map with all image & lens variables
std::vector< std::set< std::string > > OptimizeVector
void fillLensVarMap(LensVarMap &variables)
just lens variables
void printVariableMap(std::ostream &o, const VariableMap &vars)
print a variable map to o
std::map< std::string, Variable > VariableMap
functor to print a variable.
void operator()(Variable x) const
PrintVar(std::ostream &o)
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.