Skip to content

Commit 28bc8d5

Browse files
authored
Merge pull request #3127 from savuor:levmarqfromscratch
New LevMarq implementation * updated pose graph interface * updating LevMarq calls according to the last changes * Updating class name
1 parent 5ab9997 commit 28bc8d5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/rgbd/src/large_kinfu.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ bool LargeKinfuImpl<MatType>::updateT(const MatType& _depth)
287287
// TODO: Convert constraints to posegraph
288288
Ptr<detail::PoseGraph> poseGraph = submapMgr->MapToPoseGraph();
289289
CV_LOG_INFO(NULL, "Created posegraph");
290-
int iters = poseGraph->optimize();
291-
if (iters < 0)
290+
LevMarq::Report r = poseGraph->optimize();
291+
if (!r.found)
292292
{
293293
CV_LOG_INFO(NULL, "Failed to perform pose graph optimization");
294294
return false;

modules/rgbd/src/precomp.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "opencv2/core.hpp"
2525
#include "opencv2/imgproc.hpp"
2626
#include "opencv2/3d.hpp"
27-
#include "opencv2/3d/detail/pose_graph.hpp"
27+
#include "opencv2/3d/detail/optimizer.hpp"
2828
#include "opencv2/3d/detail/kinfu_frame.hpp"
2929
#include "opencv2/3d/detail/submap.hpp"
3030
#include "opencv2/rgbd.hpp"

0 commit comments

Comments
 (0)