Mercurial Hosting > traffic-intelligence
comparison include/Feature.hpp @ 129:4742b2b6d851
created basic feature saving code
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Wed, 17 Aug 2011 17:14:00 -0400 |
parents | 45a426552aaa |
children | 45c64e68053c |
comparison
equal
deleted
inserted
replaced
128:536510f60854 | 129:4742b2b6d851 |
---|---|
1 #ifndef FEATURE_HPP | 1 #ifndef FEATURE_HPP |
2 #define FEATURE_HPP | 2 #define FEATURE_HPP |
3 | 3 |
4 #include "opencv/cv.h" | 4 #include "opencv2/core/core.hpp" |
5 | 5 |
6 #include "src/Trajectory.h" | 6 #include "src/Trajectory.h" |
7 | 7 |
8 class Feature { | 8 class FeatureTrajectory { |
9 | |
10 void addPoint(const int& frameNum, const cv::Point2f& p); | |
9 | 11 |
10 protected: | 12 protected: |
11 int id; | 13 Trajectory<cv::Point2f> positions; |
12 int firstInstant; | 14 Trajectory<cv::Point2f> velocities; |
13 Trajectory<cv::Point2f> trajectory; | 15 |
16 std::vector<float> displacementDistances; | |
17 | |
18 void computeMotionData(const int& frameNum); | |
19 | |
14 }; | 20 }; |
15 | 21 |
16 #endif | 22 #endif |