Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix LocalBA intrinsics edges management #624

Merged
merged 7 commits into from
Apr 19, 2019
6 changes: 3 additions & 3 deletions src/aliceVision/sfm/LocalBundleAdjustmentGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ bool LocalBundleAdjustmentGraph::removeViewsToTheGraph(const std::set<IndexT>& r
auto it = _nodePerViewId.find(viewId);
fabiencastan marked this conversation as resolved.
Show resolved Hide resolved
if(it != _nodePerViewId.end())
{
_graph.erase(it->second); // this function erase a node with its incident arcs
_nodePerViewId.erase(it->first);
_viewIdPerNode.erase(it->second);
_graph.erase(it->second); // this function erase a node with its incident arcs
_viewIdPerNode.erase(it->second);
_nodePerViewId.erase(it->first);
yann-lty marked this conversation as resolved.
Show resolved Hide resolved

numRemovedNode++;
ALICEVISION_LOG_DEBUG("The view #" << viewId << " has been successfully removed to the distance graph.");
Expand Down