diff c/feature-based-tracking.cpp @ 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 a728fce85881
children b0b964ba9489
line wrap: on
line diff
--- a/c/feature-based-tracking.cpp	Mon Dec 12 15:44:54 2011 -0500
+++ b/c/feature-based-tracking.cpp	Mon Dec 12 18:32:10 2011 -0500
@@ -298,12 +298,8 @@
     // check for connected components that are old enough (no chance to match with trajectories to be added later
     // we could check only when some features are getting old enough?
     if (frameNum%10 == 0) {
-      vector<vector<FeatureGraph::vertex_descriptor> > objects = featureGraph.connectedComponents(frameNum-maxTrajectoryLength+params.minFeatureTime);
-      cout << objects.size() << " objects" << endl;
-
-      if (!objects.empty()) {
-	vector<vector<unsigned int> > featureGroups = featureGraph.getFeatureGroups(objects);
-      }
+      featureGraph.connectedComponents(frameNum-maxTrajectoryLength+params.minFeatureTime);
+      vector<vector<unsigned int> > featureGroups = featureGraph.getFeatureGroups();
     }
 
     cout << featureGraph.informationString() << endl;