28 #ifndef OPTIMIZERG2O_H_ 29 #define OPTIMIZERG2O_H_ 40 static bool available();
41 static bool isCSparseAvailable();
42 static bool isCholmodAvailable();
43 static bool saveGraph(
44 const std::string & fileName,
45 const std::map<int, Transform> & poses,
46 const std::multimap<int, Link> & edgeConstraints,
47 bool useRobustConstraints =
false);
54 pixelVariance_(
Parameters::defaultg2oPixelVariance()),
55 robustKernelDelta_(
Parameters::defaultg2oRobustKernelDelta()),
58 parseParameters(parameters);
64 virtual void parseParameters(
const ParametersMap & parameters);
66 virtual std::map<int, Transform> optimize(
68 const std::map<int, Transform> & poses,
69 const std::multimap<int, Link> & edgeConstraints,
70 cv::Mat & outputCovariance,
71 std::list<std::map<int, Transform> > * intermediateGraphes = 0,
72 double * finalError = 0,
73 int * iterationsDone = 0);
75 virtual std::map<int, Transform> optimizeBA(
77 const std::map<int, Transform> & poses,
78 const std::multimap<int, Link> & links,
79 const std::map<int, CameraModel> & models,
80 std::map<int, cv::Point3f> & points3DMap,
81 const std::map<
int, std::map<int, cv::Point3f> > & wordReferences,
82 std::set<int> * outliers = 0);
OptimizerG2O(const ParametersMap ¶meters=ParametersMap())
double robustKernelDelta_
std::map< std::string, std::string > ParametersMap
virtual Type type() const