Mercurial > hg > nsaunier > traffic-intelligence
comparison c/feature-based-tracking.cpp @ 710:70a3cdf0dbb3
unsucessful acceleration idea
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Wed, 22 Jul 2015 17:01:25 -0400 |
| parents | 576d9ea4b41a |
| children | 85af65b6d531 |
comparison
equal
deleted
inserted
replaced
| 708:a37c565f4b68 | 710:70a3cdf0dbb3 |
|---|---|
| 270 bool success = trajectoryDB->connect(params.databaseFilename.c_str()); | 270 bool success = trajectoryDB->connect(params.databaseFilename.c_str()); |
| 271 trajectoryDB->createObjectTable("objects", "objects_features"); | 271 trajectoryDB->createObjectTable("objects", "objects_features"); |
| 272 unsigned int savedObjectId=0; | 272 unsigned int savedObjectId=0; |
| 273 | 273 |
| 274 trajectoryDB->createInstants("table"); | 274 trajectoryDB->createInstants("table"); |
| 275 //trajectoryDB->createIndex("positions","trajectory_id"); // does not seem to make loading features faster | |
| 276 //trajectoryDB->createIndex("velocities","trajectory_id"); | |
| 275 | 277 |
| 276 unsigned int maxTrajectoryLength = 0; | 278 unsigned int maxTrajectoryLength = 0; |
| 277 success = trajectoryDB->maxTrajectoryLength(maxTrajectoryLength); | 279 success = trajectoryDB->maxTrajectoryLength(maxTrajectoryLength); |
| 278 if (!success || maxTrajectoryLength == 0) { | 280 if (!success || maxTrajectoryLength == 0) { |
| 279 cout << "problem with trajectory length " << success << endl; | 281 cout << "problem with trajectory length " << success << endl; |
