Skip to content

Commit

Permalink
fixxing bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoxiang12 committed Nov 25, 2016
1 parent 42bd5bb commit 4694a28
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ch12/feature_training.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
using namespace cv;
using namespace std;

/***************************************************
* 本节演示了如何根据data/目录下的十张图训练字典
* ************************************************/

int main( int argc, char** argv )
{
Expand Down
7 changes: 5 additions & 2 deletions ch12/loop_closure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@
using namespace cv;
using namespace std;

/***************************************************
* 本节演示了如何根据前面训练的字典计算相似性评分
* ************************************************/
int main( int argc, char** argv )
{
// read the images and database
cout<<"reading database"<<endl;
DBoW3::Vocabulary vocab("./vocabulary.yml.gz");
// DBoW3::Vocabulary vocab("./vocab_larger.yml.gz");
// DBoW3::Vocabulary vocab("./vocab_larger.yml.gz"); // use large vocab if you want:
if ( vocab.empty() )
{
cerr<<"Vocabulary does not exist."<<endl;
Expand Down Expand Up @@ -42,7 +45,7 @@ int main( int argc, char** argv )
}

// we can compare the images directly or we can compare one image to a database
// images
// images :
cout<<"comparing images with images "<<endl;
for ( int i=0; i<images.size(); i++ )
{
Expand Down

0 comments on commit 4694a28

Please sign in to comment.