Mercurial > hg > nsaunier > traffic-intelligence
comparison include/Motion.hpp @ 194:09c7881073f3
connected commponents works, but issue with removing the vertices
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Mon, 12 Dec 2011 18:32:10 -0500 |
| parents | 38974d27dd2d |
| children | aeab0b88c9b6 |
comparison
equal
deleted
inserted
replaced
| 193:a728fce85881 | 194:09c7881073f3 |
|---|---|
| 115 | 115 |
| 116 // add vertex, includes adding links to current vertices | 116 // add vertex, includes adding links to current vertices |
| 117 // find connected components, check if old enough, if so, remove | 117 // find connected components, check if old enough, if so, remove |
| 118 | 118 |
| 119 /// Computes the connected components: features have to be older than lastInstant | 119 /// Computes the connected components: features have to be older than lastInstant |
| 120 std::vector<std::vector<vertex_descriptor> > connectedComponents(const int& lastInstant); | 120 void connectedComponents(const int& lastInstant); |
| 121 | 121 |
| 122 /** Performs some checks on groups of features and return their lists of ids if correct | 122 /** Performs some checks on groups of features and return their lists of ids if correct |
| 123 Removes the vertices from the graph | 123 Removes the vertices from the graph |
| 124 */ | 124 */ |
| 125 std::vector<std::vector<unsigned int> > getFeatureGroups(const std::vector<std::vector<vertex_descriptor> >& objectHypotheses); | 125 std::vector<std::vector<unsigned int> > getFeatureGroups(void); |
| 126 | 126 |
| 127 std::string informationString(void); | 127 std::string informationString(void); |
| 128 | 128 |
| 129 protected: | 129 protected: |
| 130 float connectionDistance; | 130 float connectionDistance; |
| 134 // float minDistance; | 134 // float minDistance; |
| 135 // float maxDistance; | 135 // float maxDistance; |
| 136 | 136 |
| 137 UndirectedGraph graph; | 137 UndirectedGraph graph; |
| 138 | 138 |
| 139 std::vector<std::vector<vertex_descriptor> > objectHypotheses; | |
| 140 | |
| 139 void computeVertexIndex(void); | 141 void computeVertexIndex(void); |
| 140 | 142 |
| 141 //std::vector<UndirectedGraph::vertex_descriptor> currentVertices, lostVertices; | 143 //std::vector<UndirectedGraph::vertex_descriptor> currentVertices, lostVertices; |
| 142 }; | 144 }; |
| 143 | 145 |
