00001
00019 #ifndef __D_T_FEATURE_VECTOR__
00020 #define __D_T_FEATURE_VECTOR__
00021
00022 #include "BowVector.h"
00023 #include <map>
00024 #include <vector>
00025 #include <iostream>
00026
00027 namespace DBoW2 {
00028
00030 class FeatureVector:
00031 public std::map<NodeId, std::vector<unsigned int> >
00032 {
00033 public:
00034
00038 FeatureVector(void);
00039
00043 ~FeatureVector(void);
00044
00051 void addFeature(NodeId id, unsigned int i_feature);
00052
00058 friend std::ostream& operator<<(std::ostream &out, const FeatureVector &v);
00059
00060 };
00061
00062 }
00063
00064 #endif
00065