#include <string>
Go to the source code of this file.
Defines | |
#define | NBVISUALOBJECTMATCHALGOS 3 |
Number of matching algos: | |
Enumerations | |
enum | VisualObjectMatchAlgo { VOMA_SIMPLE = 0, VOMA_KDTREE = 1, VOMA_KDTREEBBF = 2 } |
A simple enum to decide which matching algo to use. More... | |
Functions | |
const char * | visualObjectMatchAlgoName (const VisualObjectMatchAlgo val) |
Text descriptions of the various known algos: | |
std::string | convertToString (const VisualObjectMatchAlgo val) |
Conversion to string. | |
void | convertFromString (const std::string &str, VisualObjectMatchAlgo &val) |
Conversion from string. |
Header for visual object match algos
Definition in file VisualObjectMatchAlgo.H.
#define NBVISUALOBJECTMATCHALGOS 3 |
Number of matching algos:
Definition at line 58 of file VisualObjectMatchAlgo.H.
Referenced by convertFromString().
A simple enum to decide which matching algo to use.
This is used by the SIFT code to decide on which matching algorithm to use. VOMA_SIMPLE is exhausive but slow, VOMA_KDTREE is based on using a KD-Tree but is even slower, and VOMA_KDTREEBBF is fast but approximate. See SIFT/VisualObjectMatch.H for functions using these algos. If you add new algos here, be sure to update the number of algos and the string descriptions in the visualObjectMatchAlgoName() function below.
Definition at line 51 of file VisualObjectMatchAlgo.H.
void convertFromString | ( | const std::string & | str, | |
VisualObjectMatchAlgo & | val | |||
) |
Conversion from string.
Definition at line 48 of file VisualObjectMatchAlgo.C.
References NBVISUALOBJECTMATCHALGOS, and visualObjectMatchAlgoName().
std::string convertToString | ( | const VisualObjectMatchAlgo | val | ) |
Conversion to string.
Definition at line 44 of file VisualObjectMatchAlgo.C.
References visualObjectMatchAlgoName().
const char* visualObjectMatchAlgoName | ( | const VisualObjectMatchAlgo | val | ) | [inline] |
Text descriptions of the various known algos:
Definition at line 61 of file VisualObjectMatchAlgo.H.
Referenced by convertFromString(), and convertToString().