From e7eb4418f9bb7e6e419a706f65075b4ff8af83d9 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Wed, 13 Aug 2014 17:19:11 -0400 Subject: [PATCH] Fixed bug in tag plates. Some cases caused wrong plate to be tagged --- src/misc_utilities/tagplates.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/misc_utilities/tagplates.cpp b/src/misc_utilities/tagplates.cpp index 71f3699..c6bcc51 100644 --- a/src/misc_utilities/tagplates.cpp +++ b/src/misc_utilities/tagplates.cpp @@ -64,7 +64,7 @@ static int xPos1 = 0; static int yPos1 = 0; static int xPos2 = 0; static int yPos2 = 0; -const float ASPECT_RATIO = 2.0; +const float ASPECT_RATIO = 4.33333; static bool rdragging = false; static int rDragStartX = 0; @@ -220,10 +220,10 @@ int main( int argc, const char** argv ) // Write the data to disk ofstream outputdatafile; - std::string outputTextFile = outDir + "/" + filenameWithoutExtension(files[i]) + ".txt"; + std::string outputTextFile = outDir + "/" + filenameWithoutExtension(imgFiles[i]) + ".txt"; outputdatafile.open(outputTextFile.c_str()); - outputdatafile << files[i] << "\t" << xPos1 << "\t" << yPos1 << "\t" << (xPos2 - xPos1) << "\t" << (yPos2 - yPos1) << "\t" << curplatetag << endl; + outputdatafile << imgFiles[i] << "\t" << xPos1 << "\t" << yPos1 << "\t" << (xPos2 - xPos1) << "\t" << (yPos2 - yPos1) << "\t" << curplatetag << endl; outputdatafile.close(); }