Skip to content

Commit

Permalink
Last commit was done too fast.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoulon committed May 9, 2015
1 parent 5c6fd9c commit 7b8ddd4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,15 @@ void Template_Matcher(
IndMatchDecorator<float> matchDeduplicator(vec_FilteredMatches, pointFeaturesI, pointFeaturesJ);
matchDeduplicator.getDeduplicated(vec_FilteredMatches);

if (!vec_FilteredMatches.empty())
#ifdef OPENMVG_USE_OPENMP
#pragma omp critical
#endif
{
map_PutativesMatches.insert( make_pair( make_pair(I,J), vec_FilteredMatches ));
++my_progress_bar;
if (!vec_FilteredMatches.empty())
{
map_PutativesMatches.insert( make_pair( make_pair(I,J), vec_FilteredMatches ));
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,7 @@ void GlobalSfM_Translation_AveragingSolver::ComputePutativeTranslation_EdgesCove
C_Progress_display my_progress_bar(
vec_edges.size(),
std::cout,
"\n", " " ,
"Computation of the relative translations over the graph with an edge coverage algorithm\n" );
"\nComputation of the relative translations over the graph with an edge coverage algorithm\n");

bool bVerbose = false;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ void GlobalSfMReconstructionEngine_RelativeMotions::Compute_Relative_Rotations(R
const Pair_Set & pair_set = _matches_provider->getPairs();
// copy to a vector for use with threading
const Pair_Vec pair_vec(pair_set.begin(), pair_set.end());
C_Progress_display my_progress_bar( pair_vec.size(), std::cout, "\n", " " , "Compute_Relative_Rotations\n" );
C_Progress_display my_progress_bar( pair_vec.size(), std::cout, "\nCompute_Relative_Rotations\n" );
#ifdef OPENMVG_USE_OPENMP
#pragma omp parallel for schedule(dynamic)
#endif
Expand Down

0 comments on commit 7b8ddd4

Please sign in to comment.