28 #ifndef OPTIMIZERCVSBA_H_
29 #define OPTIMIZERCVSBA_H_
38 static bool available();
42 int iterations = Parameters::defaultOptimizerIterations(),
43 bool slam2d = Parameters::defaultRegForce3DoF(),
44 bool covarianceIgnored = Parameters::defaultOptimizerVarianceIgnored()) :
45 Optimizer(iterations, slam2d, covarianceIgnored) {}
52 virtual std::map<int, Transform> optimizeBA(
54 const std::map<int, Transform> & poses,
55 const std::multimap<int, Link> & links,
56 const std::map<
int, std::vector<CameraModel> > & models,
57 std::map<int, cv::Point3f> & points3DMap,
58 const std::map<
int, std::map<int, FeatureBA> > & wordReferences,
59 std::set<int> * outliers = 0);