diff options
author | John Morrison <jcm357@cs.drexel.edu> | 2012-06-15 12:37:03 -0400 |
---|---|---|
committer | John Morrison <jcm357@cs.drexel.edu> | 2012-06-15 12:37:03 -0400 |
commit | 401c419d4d3f2fa408353faf8b1d3c7370e1df67 (patch) | |
tree | 089b1f49d721e01229d5ced0d913ea35ba43422c /fly-tools | |
parent | 4997e34640b04ed3ca0cdc68ea2e523df12b5c28 (diff) |
fixed process name in process-video-beta, removed pointless mem-limits on FlyTrackingMain
Diffstat (limited to 'fly-tools')
-rw-r--r-- | fly-tools/FlyTrackingMain.cpp | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/fly-tools/FlyTrackingMain.cpp b/fly-tools/FlyTrackingMain.cpp index 4114a08..ba678a1 100644 --- a/fly-tools/FlyTrackingMain.cpp +++ b/fly-tools/FlyTrackingMain.cpp @@ -1976,7 +1976,7 @@ void processASequence(int startOfATrackSequence, int endOfATrackSequence) { vector<FlyObject > fOVector = currentFI.getFOVector(); FlyObject cFFirstFO = fOVector[0]; FlyObject cFSecondFO = fOVector[1]; - + sequenceFirstAverage += cFFirstFO.getArea(); sequenceSecondAverage += cFSecondFO.getArea(); @@ -2030,12 +2030,12 @@ int main(int argc, char* argv[]) return -1; } - MagickCore::SetMagickResourceLimit(MagickCore::MemoryResource, 1536); - MagickCore::SetMagickResourceLimit(MagickCore::MapResource, 4092); + //MagickCore::SetMagickResourceLimit(MagickCore::MemoryResource, 1536); + //MagickCore::SetMagickResourceLimit(MagickCore::MapResource, 4092); string ifns(argv[1]); inputFileName = ifns; -// cout << "input file name is "<<inputFileName<<endl; + // cout << "input file name is "<<inputFileName<<endl; string fileName; ifstream inputFile(inputFileName.c_str()); @@ -2046,23 +2046,16 @@ int main(int argc, char* argv[]) exit(1); } - //cout<<"come here ------------------------- 1"<<endl; // set the global paths string tempOIP(argv[2]); origImagePath = tempOIP; - //cout<<"come here ------------------------- 2"<<endl; - string tempFOP(argv[3]); finalOutputPath = tempFOP; - //cout<<"come here ------------------------- 3"<<endl; - string tempOFP(argv[5]); outputFilePrefix = tempOFP; - //cout<<"come here ------------------------- 4"<<endl; - string statFileName = tempFOP + outputFilePrefix + "_statFile.txt"; //cout << "Statfilename is "<<statFileName<<endl; foutSt.open(statFileName.c_str()); @@ -2114,10 +2107,10 @@ int main(int argc, char* argv[]) bool currentlyCalculatingHead = true; - + while (inputFile>>fileName) { -// Image* img = new Image(argv[1]);// = new Image(argv[1]); + // Image* img = new Image(argv[1]);// = new Image(argv[1]); int fi = fileName.find("_"); // current sequence numbers spans from 0 - 18019, so 5 digits are needed @@ -2136,7 +2129,7 @@ int main(int argc, char* argv[]) cout << "Reading file "<<fileName<<endl; Image* img = new Image(fileName.c_str()); int width = img->columns(),height = img->rows(); - diagLength= static_cast<int> ( sqrt( (height*height) + (width*width) ) ); + diagLength= static_cast<int> ( sqrt( (height*height) + (width*width) ) ); //cout << "Diagonal length is "<<diagLength<<endl; // Image* imgWithInfo; // imgWithInfo = new Image(fileName.c_str()); @@ -2184,13 +2177,12 @@ int main(int argc, char* argv[]) } } - + delete img; - delete residual; -// cout<<"Sorting the objects according to size"<<endl; -// bubbleSort(tempFOV); + // cout<<"Sorting the objects according to size"<<endl; + // bubbleSort(tempFOV); fOVector.clear(); @@ -2793,8 +2785,8 @@ void drawTheFlyObject(FrameInfo currentFI, string fileName, int isFirst, bool si bool eVDirection = currentFO.getHeadIsInDirectionMAEV(); // debug: - cout<<"Calling the findTheStartPoint() function"<<endl; - cout<<"Female size "<<femaleSize<<" maleSize "<<maleSize<<" MaleCentroid = "<<centroid.first<<", "<<centroid.second<<endl; + //cout<<"Calling the findTheStartPoint() function"<<endl; + //cout<<"Female size "<<femaleSize<<" maleSize "<<maleSize<<" MaleCentroid = "<<centroid.first<<", "<<centroid.second<<endl; // initialize the flag with false for the next found of findTheStartPoint() isFoundStartPoint = false; |