Skip to content

Commit

Permalink
Enhance robustness when trackId are not contiguous.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoulon committed Jan 28, 2016
1 parent a8abfe4 commit 6395489
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,9 @@ void GlobalSfM_Translation_AveragingSolver::ComputePutativeTranslation_EdgesCove
iterInliers != vec_inliers.end(); ++iterInliers)
{
using namespace openMVG::tracks;
const submapTrack & subTrack = pose_triplet_tracks.at(*iterInliers);
STLMAPTracks::iterator it_tracks = pose_triplet_tracks.begin();
std::advance(it_tracks, *iterInliers);
const submapTrack & subTrack = it_tracks->second;

// create pairwise matches from inlier track
for (size_t index_I = 0; index_I < subTrack.size() ; ++index_I)
Expand Down

0 comments on commit 6395489

Please sign in to comment.