Skip to content

Commit

Permalink
VLAD Improvements (openMVG#1964)
Browse files Browse the repository at this point in the history
* [Build] install rules for VLAD binary

* [VLAD] Use codebook size as method parameter.

- this fix a bug where changing codebook size parameter in VLAD command-line results in inconsistent values
  • Loading branch information
rjanvier authored Nov 19, 2021
1 parent 6ebb155 commit 8f61623
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/software/SfM/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,15 @@ target_link_libraries(openMVG_main_MatchesToTracks
set_property( TARGET openMVG_main_ListMatchingPairs PROPERTY FOLDER OpenMVG/software )
set_property( TARGET openMVG_main_ComputeFeatures PROPERTY FOLDER OpenMVG/software )
set_property( TARGET openMVG_main_PairGenerator PROPERTY FOLDER OpenMVG/software )
set_property( TARGET openMVG_main_ComputeVLAD PROPERTY FOLDER OpenMVG/software )
set_property( TARGET openMVG_main_ComputeMatches PROPERTY FOLDER OpenMVG/software )
set_property( TARGET openMVG_main_GeometricFilter PROPERTY FOLDER OpenMVG/software )
set_property( TARGET openMVG_main_MatchesToTracks PROPERTY FOLDER OpenMVG/software )

install( TARGETS openMVG_main_ListMatchingPairs DESTINATION bin/ )
install( TARGETS openMVG_main_ComputeFeatures DESTINATION bin/ )
install( TARGETS openMVG_main_PairGenerator DESTINATION bin/ )
install( TARGETS openMVG_main_ComputeVLAD DESTINATION bin/ )
install( TARGETS openMVG_main_ComputeMatches DESTINATION bin/ )
install( TARGETS openMVG_main_GeometricFilter DESTINATION bin/ )
install( TARGETS openMVG_main_MatchesToTracks DESTINATION bin/ )
Expand Down
2 changes: 1 addition & 1 deletion src/software/SfM/main_ComputeVLAD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ int main(int argc, char **argv) {
<< std::endl;

VLADBase::DescriptorVector codebook;
codebook = vlad_builder->BuildCodebook(descriptor_array);
codebook = vlad_builder->BuildCodebook(descriptor_array, codebook_size);

// Freeing some memory
descriptor_array.clear();
Expand Down

0 comments on commit 8f61623

Please sign in to comment.