59 static void getConnectedGraph(
61 const std::map<int, Transform> & posesIn,
62 const std::multimap<int, Link> & linksIn,
63 std::map<int, Transform> & posesOut,
64 std::multimap<int, Link> & linksOut,
70 virtual Type type()
const = 0;
88 virtual void parseParameters(
const ParametersMap & parameters);
90 std::map<int, Transform> optimizeIncremental(
92 const std::map<int, Transform> & poses,
93 const std::multimap<int, Link> & constraints,
94 std::list<std::map<int, Transform> > * intermediateGraphes = 0,
95 double * finalError = 0,
96 int * iterationsDone = 0);
98 std::map<int, Transform> optimize(
100 const std::map<int, Transform> & poses,
101 const std::multimap<int, Link> & constraints,
102 std::list<std::map<int, Transform> > * intermediateGraphes = 0,
103 double * finalError = 0,
104 int * iterationsDone = 0);
107 virtual std::map<int, Transform> optimize(
109 const std::map<int, Transform> & poses,
110 const std::multimap<int, Link> & constraints,
111 cv::Mat & outputCovariance,
112 std::list<std::map<int, Transform> > * intermediateGraphes = 0,
113 double * finalError = 0,
114 int * iterationsDone = 0);
115 virtual std::map<int, Transform> optimizeBA(
117 const std::map<int, Transform> & poses,
118 const std::multimap<int, Link> & links,
119 const std::map<int, CameraModel> & models,
120 std::map<int, cv::Point3f> & points3DMap,
121 const std::map<
int, std::map<int, cv::Point3f> > & wordReferences,
122 std::set<int> * outliers = 0);
124 std::map<int, Transform> optimizeBA(
126 const std::map<int, Transform> & poses,
127 const std::multimap<int, Link> & links,
128 const std::map<int, Signature> & signatures);
133 std::map<int, cv::Point3f> & points3DMap,
134 const std::map<
int, std::map<int, cv::Point3f> > & wordReferences,
135 std::set<int> * outliers = 0);
137 void computeBACorrespondences(
138 const std::map<int, Transform> & poses,
139 const std::multimap<int, Link> & links,
140 const std::map<int, Signature> & signatures,
141 std::map<int, cv::Point3f> & points3DMap,
142 std::map<
int, std::map<int, cv::Point3f> > & wordReferences);
146 int iterations = Parameters::defaultOptimizerIterations(),
147 bool slam2d = Parameters::defaultRegForce3DoF(),
148 bool covarianceIgnored = Parameters::defaultOptimizerVarianceIgnored(),
149 double epsilon = Parameters::defaultOptimizerEpsilon(),
150 bool robust = Parameters::defaultOptimizerRobust(),
151 bool priorsIgnored = Parameters::defaultOptimizerPriorsIgnored());
bool priorsIgnored() const
void setIterations(int iterations)
std::map< std::string, std::string > ParametersMap
bool isCovarianceIgnored() const
void setSlam2d(bool enabled)
void setPriorsIgnored(bool enabled)
void setRobust(bool enabled)
void setCovarianceIgnored(bool enabled)
void setEpsilon(double epsilon)