34 #include <Geometry/ProjectionError.hh>
35 #include <Utils/Param.hh>
36 #include <MathAlgo/StandardDeviation.hh>
41 int main(
int argc,
char **argv)
45 0.0, 0.0, DBL_MAX,
'b', 1);
47 7.5, -90.0, 90.0,
'a', 1);
49 0.0, 0.0, DBL_MAX,
'd', 1);
51 0.0, 0.0, DBL_MAX,
'D', 1);
53 0.5, 0.0, DBL_MAX,
'o', 1);
54 pp.
AddParamInt(
"resolution",
"Horizontale Kameraaufloesung",
55 0, 0, INT_MAX,
'r', 1);
57 25, 0, INT_MAX,
't', 1);
70 if (dMin <= 0 || res <= 0)
82 pe.
Init(res, dMin, a * M_PI / 180.0);
87 for (
int i = 0; i < nTests; i++)
95 cout << d <<
"\t" << s << endl;
97 d += (dMax - dMin) / (nTests - 1);
103 cout <<
"Baseline: " << b << endl;
void Init(int res, double depth, double angle)
Initiates cameras and calculates the length of the baseline based on minDepth and angle...
double * GetParamDouble(const std::string &name) const
double GetBaseline() const
double * AddParamDouble(const std::string &name, const std::string &help, double deflt=0.0, double min=-DBL_MAX, double max=DBL_MAX, char cmdshort=0, int Group=GRP_NOSHOW)
double CalcStandardDeviation()
Compute standard deviation of internally sorted values.
int ParseCommandLine(int &argc, char *argv[])
scan command line arguments for valid parameters
double ComputeDiff(double z, double offset)
void Clear()
Clear the internally stored values.
void Usage(std::ostream &os=std::cout)
print Help-Information to stdout
Computes the standard deviation and mean of given values.
int * GetParamInt(const std::string &name) const
void AddValue(double v)
Add a value to the vector of internally stored values.
This class Param provides generic support for parameters.
int SetGroupName(const int group_id, const std::string &name)
sets the name for a group
int * AddParamInt(const std::string &name, const std::string &help, int deflt=0, int min=std::numeric_limits< int >::min(), int max=std::numeric_limits< int >::max(), char cmdshort=0, int Group=GRP_NOSHOW)
For all adding routines: