diff c/Feature.cpp @ 133:63dd4355b6d1

saving of feature positions in sqlite database
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 17 Aug 2011 22:26:01 -0400
parents 45c64e68053c
children 32d2722d4028
line wrap: on
line diff
--- a/c/Feature.cpp	Wed Aug 17 19:03:25 2011 -0400
+++ b/c/Feature.cpp	Wed Aug 17 22:26:01 2011 -0400
@@ -3,6 +3,8 @@
 #include "opencv2/core/core.hpp"
 #include "opencv2/highgui/highgui.hpp"
 
+#include "src/TrajectoryDBAccessList.h"
+
 using namespace std;
 using namespace cv;
 
@@ -15,6 +17,11 @@
   computeMotionData(frameNum);
 }
 
+void FeatureTrajectory::write(TrajectoryDBAccess<Point2f>& trajectoryDB) const {
+  /// \todo save velocities
+  trajectoryDB.write(positions);
+}
+
 #ifdef USE_OPENCV
 /// \todo add option for anti-aliased drawing, thickness
 void FeatureTrajectory::draw(Mat& img, const Scalar& color) const {