Skip to content

Commit

Permalink
[sfm] fix: this is not an error if we have a calibration in input
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiencastan committed Sep 24, 2019
1 parent 141c4ad commit b3762bc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,8 @@ bool ReconstructionEngine_sequentialSfM::bundleAdjustment(std::set<IndexT>& newR
// - the number of cameras to refine cannot be < to the number of newly added cameras (set to 'refine' by default)
if((nbRefinedPoses <= newReconstructedViews.size()) && _sfmData.getRigs().empty())
{
throw std::runtime_error("The local bundle adjustment refinement has not been done: the new cameras are not connected to the rest of the graph.");
ALICEVISION_LOG_INFO("Local bundle adjustment: the new cameras are not connected to the rest of the graph"
" (nbRefinedPoses: " << nbRefinedPoses << ", newReconstructedViews.size(): " << newReconstructedViews.size() << ").");
}
}

Expand Down

0 comments on commit b3762bc

Please sign in to comment.