diff c/track-features.cpp @ 70:a52653dca25d

got track features to compile, updated paths to headers and libraries for OpenCV 2
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Sat, 13 Nov 2010 11:20:10 -0500
parents ef0d7caf8e91
children
line wrap: on
line diff
--- a/c/track-features.cpp	Wed Nov 10 23:41:49 2010 -0500
+++ b/c/track-features.cpp	Sat Nov 13 11:20:10 2010 -0500
@@ -7,6 +7,7 @@
 #include "opencv/highgui.h"
 
 #include <iostream>
+#include <fstream>
 #include <string>
 
 using namespace std;
@@ -26,7 +27,6 @@
   int i,j;
   string fnamein, fnameout, tmp;
   string sequenceDir="../test-images";
-  FILE* out;
 
   IplImage *image;
   int width, height;
@@ -144,7 +144,7 @@
 
   int precision = 2;
   ofstream out;
-  openWriteScientific(out, fnameout, precision);//out = fopen(fnameout.c_str(),"w");
+  ::openWriteScientificPrecision(out, fnameout, precision);
 
   //fprintf(out,"%%StartFrame: 0\n");
   //fprintf(out,"%%NumFrames: %d\n",nFrames);
@@ -169,10 +169,10 @@
 	firstFrameNum = i+1;
 	lx.clear();
 	ly.clear();
+      }
     }
+  }
     
-    //fclose(out);
-
   cvReleaseCapture(&sequence);
 
   return 1;