28 #ifndef OPTIMIZERCERES_H_
29 #define OPTIMIZERCERES_H_
38 static bool available();
42 int iterations = Parameters::defaultOptimizerIterations(),
43 bool slam2d = Parameters::defaultRegForce3DoF(),
44 bool covarianceIgnored = Parameters::defaultOptimizerVarianceIgnored(),
45 double epsilon = Parameters::defaultOptimizerEpsilon()) :
53 virtual std::map<int, Transform>
optimize(
55 const std::map<int, Transform> & poses,
56 const std::multimap<int, Link> & edgeConstraints,
57 cv::Mat & outputCovariance,
58 std::list<std::map<int, Transform> > * intermediateGraphes = 0,
59 double * finalError = 0,
60 int * iterationsDone = 0);
62 virtual std::map<int, Transform> optimizeBA(
64 const std::map<int, Transform> & poses,
65 const std::multimap<int, Link> & links,
66 const std::map<
int, std::vector<CameraModel> > & models,
67 std::map<int, cv::Point3f> & points3DMap,
68 const std::map<
int, std::map<int, FeatureBA> > & wordReferences,
69 std::set<int> * outliers = 0);