28 #ifndef OPTIMIZERG2O_H_ 29 #define OPTIMIZERG2O_H_ 40 static bool available();
41 static bool isCSparseAvailable();
42 static bool isCholmodAvailable();
49 pixelVariance_(
Parameters::defaultg2oPixelVariance()),
50 robustKernelDelta_(
Parameters::defaultg2oRobustKernelDelta()),
53 parseParameters(parameters);
59 virtual void parseParameters(
const ParametersMap & parameters);
61 virtual std::map<int, Transform> optimize(
63 const std::map<int, Transform> & poses,
64 const std::multimap<int, Link> & edgeConstraints,
65 cv::Mat & outputCovariance,
66 std::list<std::map<int, Transform> > * intermediateGraphes = 0,
67 double * finalError = 0,
68 int * iterationsDone = 0);
70 virtual std::map<int, Transform> optimizeBA(
72 const std::map<int, Transform> & poses,
73 const std::multimap<int, Link> & links,
74 const std::map<int, CameraModel> & models,
75 std::map<int, cv::Point3f> & points3DMap,
76 const std::map<
int, std::map<int, FeatureBA> > & wordReferences,
77 std::set<int> * outliers = 0);
80 const std::string & fileName,
81 const std::map<int, Transform> & poses,
82 const std::multimap<int, Link> & edgeConstraints);
OptimizerG2O(const ParametersMap ¶meters=ParametersMap())
double robustKernelDelta_
std::map< std::string, std::string > ParametersMap
virtual Type type() const