File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments