Mercurial > hg > nsaunier > traffic-intelligence
comparison include/Motion.hpp @ 188:1435965d8181
work on connected components
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Thu, 01 Dec 2011 19:18:32 -0500 |
| parents | 6c48283a78ca |
| children | 36968a63efe1 |
comparison
equal
deleted
inserted
replaced
| 187:aa1061fb9695 | 188:1435965d8181 |
|---|---|
| 99 void addFeature(const FeatureTrajectoryPtr& ft); | 99 void addFeature(const FeatureTrajectoryPtr& ft); |
| 100 | 100 |
| 101 // add vertex, includes adding links to current vertices | 101 // add vertex, includes adding links to current vertices |
| 102 // find connected components, check if old enough, if so, remove | 102 // find connected components, check if old enough, if so, remove |
| 103 | 103 |
| 104 /// Computes the connected components: features have to be older than lastInstant | |
| 105 void connectedComponents(const int& lastInstant); | |
| 106 | |
| 104 std::string informationString(void); | 107 std::string informationString(void); |
| 105 | 108 |
| 106 protected: | 109 protected: |
| 107 struct FeatureConnection { | 110 struct FeatureConnection { |
| 108 float minDistance; | 111 float minDistance; |
