vocabtree  0.0.1
inverted_index.hpp File Reference
Include dependency graph for inverted_index.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  InvertedIndex
 Implements a Bag of Words based (BoW) image search using an inverted index. More...
 
struct  InvertedIndex::TrainParams
 Subclass of train params base which specifies inverted index training parameters. More...
 
struct  InvertedIndex::SearchParams
 Subclass of train params base which specifies inverted index training parameters. More...
 
struct  InvertedIndex::MatchResults
 Subclass of match results base which also returns scores. More...
 

Functions

std::ostream & operator<< (std::ostream &out, const InvertedIndex::MatchResults &match_results)
 Prints out information about the match results. More...
 

Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const InvertedIndex::MatchResults match_results 
)

Prints out information about the match results.

Definition at line 162 of file inverted_index.cxx.

References MatchResultsBase::matches, and InvertedIndex::MatchResults::tfidf_scores.

162  {
163  out << "[ ";
164  for(uint32_t i=0; i<MIN(8, match_results.matches.size()); i++) {
165  out << "[ " << match_results.matches[i] << ", " << match_results.tfidf_scores[i] << " ] ";
166  }
167  out << "]";
168  return out;
169 }