DBoW2::BowVector Class Reference
Vector of words to represent images.
More...
#include <BowVector.h>
List of all members.
Detailed Description
Vector of words to represent images.
Constructor & Destructor Documentation
DBoW2::BowVector::BowVector |
( |
void |
|
) |
|
DBoW2::BowVector::~BowVector |
( |
void |
|
) |
|
Member Function Documentation
Adds a word with a value to the vector only if this does not exist yet
- Parameters:
-
| id | word id to look for |
| v | value to give to the word if this does not exist |
Adds a value to a word value existing in the vector, or creates a new word with the given value
- Parameters:
-
| id | word id to look for |
| v | value to create the word with, or to add to existing word |
void DBoW2::BowVector::normalize |
( |
LNorm |
norm_type |
) |
|
L1-Normalizes the values in the vector
- Parameters:
-
void DBoW2::BowVector::saveM |
( |
const std::string & |
filename, |
|
|
size_t |
W | |
|
) |
| | const |
Saves the bow vector as a vector in a matlab file
- Parameters:
-
| filename | |
| W | number of words in the vocabulary |
Friends And Related Function Documentation
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const BowVector & |
v | |
|
) |
| | [friend] |
Prints the content of the bow vector
- Parameters:
-
The documentation for this class was generated from the following files: