Mercurial Hosting > traffic-intelligence
comparison include/Feature.hpp @ 134:a617d0808bbc
added test on feature length and display control
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Wed, 17 Aug 2011 23:21:26 -0400 |
parents | 63dd4355b6d1 |
children | 32d2722d4028 |
comparison
equal
deleted
inserted
replaced
133:63dd4355b6d1 | 134:a617d0808bbc |
---|---|
11 positions, velocities and other statistics to evaluate their quality | 11 positions, velocities and other statistics to evaluate their quality |
12 before saving. */ | 12 before saving. */ |
13 class FeatureTrajectory { | 13 class FeatureTrajectory { |
14 public: | 14 public: |
15 FeatureTrajectory(const int& frameNum, const cv::Point2f& p); | 15 FeatureTrajectory(const int& frameNum, const cv::Point2f& p); |
16 | |
17 unsigned int length(void) const { return positions.size();} | |
16 | 18 |
17 void setId(const unsigned int& id) { positions.setId(id);velocities.setId(id);} | 19 void setId(const unsigned int& id) { positions.setId(id);velocities.setId(id);} |
18 | 20 |
19 void addPoint(const int& frameNum, const cv::Point2f& p); | 21 void addPoint(const int& frameNum, const cv::Point2f& p); |
20 | 22 |