Mercurial Hosting > traffic-intelligence
diff 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 |
line wrap: on
line diff
--- a/include/Motion.hpp Mon Dec 12 15:44:54 2011 -0500 +++ b/include/Motion.hpp Mon Dec 12 18:32:10 2011 -0500 @@ -117,12 +117,12 @@ // find connected components, check if old enough, if so, remove /// Computes the connected components: features have to be older than lastInstant - std::vector<std::vector<vertex_descriptor> > connectedComponents(const int& lastInstant); + void connectedComponents(const int& lastInstant); /** Performs some checks on groups of features and return their lists of ids if correct Removes the vertices from the graph */ - std::vector<std::vector<unsigned int> > getFeatureGroups(const std::vector<std::vector<vertex_descriptor> >& objectHypotheses); + std::vector<std::vector<unsigned int> > getFeatureGroups(void); std::string informationString(void); @@ -136,6 +136,8 @@ UndirectedGraph graph; + std::vector<std::vector<vertex_descriptor> > objectHypotheses; + void computeVertexIndex(void); //std::vector<UndirectedGraph::vertex_descriptor> currentVertices, lostVertices;