Mercurial > hg > nsaunier > traffic-intelligence
comparison c/feature-based-tracking.cpp @ 411:31604ef1cad4
added hog functions and the display of road user types if known
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Wed, 21 Aug 2013 00:00:23 -0400 |
| parents | b829ebdc18e6 |
| children | 97cb5c969ef2 |
comparison
equal
deleted
inserted
replaced
| 410:91954c76d12c | 411:31604ef1cad4 |
|---|---|
| 321 featureGraph.getFeatureGroups(featureGroups); | 321 featureGraph.getFeatureGroups(featureGroups); |
| 322 for (unsigned int i=0; i<featureGroups.size(); ++i) { | 322 for (unsigned int i=0; i<featureGroups.size(); ++i) { |
| 323 vector<unsigned int> featureNumbers; | 323 vector<unsigned int> featureNumbers; |
| 324 for (unsigned int j=0; j<featureGroups[i].size(); ++j) | 324 for (unsigned int j=0; j<featureGroups[i].size(); ++j) |
| 325 featureNumbers.push_back(featureGroups[i][j]->getId()); | 325 featureNumbers.push_back(featureGroups[i][j]->getId()); |
| 326 trajectoryDB->writeObject(savedObjectId, featureNumbers, -1, 1, string("objects"), string("objects_features")); | 326 trajectoryDB->writeObject(savedObjectId, featureNumbers, 0 /* unknown */, 1, string("objects"), string("objects_features")); |
| 327 savedObjectId++; | 327 savedObjectId++; |
| 328 } | 328 } |
| 329 } | 329 } |
| 330 | 330 |
| 331 if (frameNum%100 ==0) | 331 if (frameNum%100 ==0) |
