diff c/feature-based-tracking.cpp @ 144:b32947b002da

added the code to read matrices from text files
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Fri, 26 Aug 2011 19:38:11 -0400
parents a3532db00c28
children 7bf8084e720f
line wrap: on
line diff
--- a/c/feature-based-tracking.cpp	Wed Aug 24 19:43:44 2011 -0400
+++ b/c/feature-based-tracking.cpp	Fri Aug 26 19:38:11 2011 -0400
@@ -70,6 +70,9 @@
   KLTFeatureTrackingParameters params(argc, argv);
   cout << params.parameterDescription << endl;
 
+  Mat m = ::loadMat(params.homographyFilename, " ");
+  //cout << m << endl;
+
   float minTotalFeatureDisplacement = params.nDisplacements*params.minFeatureDisplacement;
   Size window = Size(params.windowSize, params.windowSize);
 
@@ -115,7 +118,7 @@
   //     cout << "capture device " << argv[1] << " failed to open!" << endl;
   //     return 1;
   //   }
-  
+
   // database
   boost::shared_ptr<TrajectoryDBAccess<Point2f> > trajectoryDB = boost::shared_ptr<TrajectoryDBAccess<Point2f> >(new TrajectoryDBAccessList<Point2f>());
   //TrajectoryDBAccess<Point2f>* trajectoryDB = new TrajectoryDBAccessBlob<Point2f>();