using map instead of multimap for motion estimation methods (only unique words were used)

This commit is contained in:
matlabbe
2015-07-28 23:48:50 -04:00
parent a4039241c5
commit b686103765
14 changed files with 121 additions and 84 deletions
+9
View File
@@ -470,6 +470,15 @@ inline std::list<V> uVectorToList(const std::vector<V> & v)
return std::list<V>(v.begin(), v.end());
}
/**
* Convert a std::multimap to a std::map
*/
template<class K, class V>
inline std::map<K, V> uMultimapToMap(const std::multimap<K, V> & m)
{
return std::map<K, V>(m.begin(), m.end());
}
/**
* Append a list to another list.
* @param list the list on which the other list will be appended