diff c/Motion.cpp @ 163:cde87a07eb58

added graph structures
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Tue, 27 Sep 2011 01:38:05 -0400
parents 0089fb29cd26
children 9323427aa0a3
line wrap: on
line diff
--- a/c/Motion.cpp	Tue Sep 27 00:34:03 2011 -0400
+++ b/c/Motion.cpp	Tue Sep 27 01:38:05 2011 -0400
@@ -9,7 +9,10 @@
 using namespace std;
 using namespace cv;
 
-FeatureTrajectory::FeatureTrajectory(const int& frameNum, const cv::Point2f& p, const Mat& homography) {
+/******************** FeatureTrajectory ********************/
+
+FeatureTrajectory::FeatureTrajectory(const int& frameNum, const cv::Point2f& p, const Mat& homography)
+  : lost(false) {
   addPoint(frameNum, p, homography);
 }
 
@@ -95,3 +98,5 @@
     displacementDistances.push_back(dist);
   }
 }
+
+/******************** FeatureGraph ********************/