Mercurial > hg > nsaunier > traffic-intelligence
comparison c/Motion.cpp @ 142:a3532db00c28
added code to write velocities
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Wed, 24 Aug 2011 02:12:06 -0400 |
| parents | 47329bd16cc0 |
| children | 0089fb29cd26 |
comparison
equal
deleted
inserted
replaced
| 141:6f10a227486c | 142:a3532db00c28 |
|---|---|
| 53 positions.pop_back(); | 53 positions.pop_back(); |
| 54 velocities.pop_back(); | 54 velocities.pop_back(); |
| 55 displacementDistances.pop_back(); | 55 displacementDistances.pop_back(); |
| 56 } | 56 } |
| 57 | 57 |
| 58 void FeatureTrajectory::write(TrajectoryDBAccess<Point2f>& trajectoryDB) const { | 58 void FeatureTrajectory::write(TrajectoryDBAccess<Point2f>& trajectoryDB, const string& positionsTableName, const string& velocitiesTableName) const { |
| 59 /// \todo save velocities | 59 trajectoryDB.write(positions, positionsTableName); |
| 60 trajectoryDB.write(positions); | 60 trajectoryDB.write(velocities, velocitiesTableName); |
| 61 } | 61 } |
| 62 | 62 |
| 63 #ifdef USE_OPENCV | 63 #ifdef USE_OPENCV |
| 64 /// \todo add option for anti-aliased drawing, thickness | 64 /// \todo add option for anti-aliased drawing, thickness |
| 65 void FeatureTrajectory::draw(Mat& img, const Scalar& color) const { | 65 void FeatureTrajectory::draw(Mat& img, const Scalar& color) const { |
