Mercurial Hosting > traffic-intelligence
diff include/Motion.hpp @ 399:c389fae9689a
Added a class to read list of image instead of video. This is controlled by the use of the database-filename and folder-data parameters in the config file.
author | Jean-Philippe Jodoin <jpjodoin@gmail.com> |
---|---|
date | Mon, 29 Jul 2013 17:12:45 -0400 |
parents | 03dbecd3a887 |
children | b6ad86ee7033 |
line wrap: on
line diff
--- a/include/Motion.hpp Mon Jul 29 13:46:07 2013 -0400 +++ b/include/Motion.hpp Mon Jul 29 17:12:45 2013 -0400 @@ -5,6 +5,7 @@ #include <boost/shared_ptr.hpp> #include <boost/graph/adjacency_list.hpp> + template<typename T> class TrajectoryDBAccess; template<typename T> class TrajectoryDBAccessList; @@ -13,7 +14,8 @@ /** Class for feature data positions, velocities and other statistics to evaluate their quality before saving. */ -class FeatureTrajectory { +class FeatureTrajectory +{ public: FeatureTrajectory(const unsigned int& frameNum, const cv::Point2f& p, const cv::Mat& homography); @@ -75,10 +77,12 @@ typedef boost::shared_ptr<FeatureTrajectory> FeatureTrajectoryPtr; // inlined -inline std::ostream& operator<<(std::ostream& out, const FeatureTrajectory& ft) { +inline std::ostream& operator<<(std::ostream& out, const FeatureTrajectory& ft) +{ out << *(ft.positions); out << "\n"; out << *(ft.velocities); + return out; }