From bc5e8a9c4f9c6530793037b19d045fc10581823e Mon Sep 17 00:00:00 2001 From: John Morrison Date: Fri, 15 Jun 2012 14:28:59 -0400 Subject: fixed to use globals and begin to implement optional output of overlay images --- fly-tools/FlyTrackingMain.cpp | 31 +++++++++++-------------------- 1 file changed, 11 insertions(+), 20 deletions(-) (limited to 'fly-tools') diff --git a/fly-tools/FlyTrackingMain.cpp b/fly-tools/FlyTrackingMain.cpp index 0595a45..381722e 100644 --- a/fly-tools/FlyTrackingMain.cpp +++ b/fly-tools/FlyTrackingMain.cpp @@ -59,6 +59,7 @@ int endOfAOneObject = -1; vector fnVector; string inputFileName; +bool writeFinalImages = false; // GLOBAL PATHS string maskImagePath; string origImagePath; @@ -2024,13 +2025,7 @@ ofstream foutDebugSpeed; int main(int argc, char **argv) { int c; - int writeFinalImages; string usage = "Usage: FlyTracking -i -o -f -m -O "; - string origImagePath; - string finalOutputPath; - string outputFilePrefix; - string maskImagePath; - string inputFileName; opterr = 0; while ((c = getopt (argc, argv, "i:f:m:p:o:hx")) != -1) @@ -2056,7 +2051,7 @@ int main(int argc, char **argv) exit(1); break; case 'x': - writeFinalImages; + writeFinalImages = true; break; default: break; @@ -2151,9 +2146,10 @@ int main(int argc, char **argv) Image* img = new Image(fileName.c_str()); int width = img->columns(),height = img->rows(); diagLength= static_cast ( sqrt( (height*height) + (width*width) ) ); + //cout << "Diagonal length is "< fOVector = currentFI.getFOVector(); cout << "While drawing it found objects = "<