Mercurial Hosting > traffic-intelligence
view 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 |
line wrap: on
line source
#ifndef FEATURE_HPP #define FEATURE_HPP #include "opencv2/core/core.hpp" #include "src/Trajectory.h" class FeatureTrajectory { void addPoint(const int& frameNum, const cv::Point2f& p); protected: Trajectory<cv::Point2f> positions; Trajectory<cv::Point2f> velocities; std::vector<float> displacementDistances; void computeMotionData(const int& frameNum); }; #endif