Mercurial > hg > nsaunier > traffic-intelligence
comparison include/Motion.hpp @ 221:bc93e87a2108
cleaned and corrected connected components and feature groups
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Mon, 25 Jun 2012 23:50:18 -0400 |
| parents | f7ddfc4aeb1e |
| children | 249d65ff6c35 |
comparison
equal
deleted
inserted
replaced
| 220:f0f800b95765 | 221:bc93e87a2108 |
|---|---|
| 111 | 111 |
| 112 // add vertex, includes adding links to current vertices | 112 // add vertex, includes adding links to current vertices |
| 113 // find connected components, check if old enough, if so, remove | 113 // find connected components, check if old enough, if so, remove |
| 114 | 114 |
| 115 /// Computes the connected components: features have to be older than lastInstant | 115 /// Computes the connected components: features have to be older than lastInstant |
| 116 void connectedComponents(const int& lastInstant); | 116 void connectedComponents(const unsigned int& lastInstant); |
| 117 | 117 |
| 118 /** Performs some checks on groups of features and return their lists of ids if correct | 118 /** Performs some checks on groups of features and return their lists of ids if correct |
| 119 Removes the vertices from the graph */ | 119 Removes the vertices from the graph */ |
| 120 std::vector<std::vector<unsigned int> > getFeatureGroups(void); | 120 std::vector<std::vector<unsigned int> > getFeatureGroups(void); |
| 121 | 121 |
