From fb8e1756a6bd715f983d19a788e526383c314eab Mon Sep 17 00:00:00 2001 From: mutantturkey Date: Tue, 19 Jun 2012 11:29:02 -0400 Subject: cleanup spacing --- fly-tools/FlyTrackingMain.cpp | 63 +++++++++++++++++-------------------------- 1 file changed, 24 insertions(+), 39 deletions(-) (limited to 'fly-tools') diff --git a/fly-tools/FlyTrackingMain.cpp b/fly-tools/FlyTrackingMain.cpp index 09b4010..7f821f8 100644 --- a/fly-tools/FlyTrackingMain.cpp +++ b/fly-tools/FlyTrackingMain.cpp @@ -1,5 +1,5 @@ #include -#include +#include #include #include #include @@ -27,6 +27,17 @@ const int STUCKING_TO_A_SINGLE_BLOB = 1; const int SEPARATING_FROM_SINGLE_BLOB = 2; +typedef void (*loggerfunc) (const string&); + +void logOn(const string& toprint){ + cout << toprint << endl; +} + +void logOff(const string& toprint){ +} + +loggerfunc vlog = NULL; + Image* residual; vector fOVector; @@ -88,12 +99,9 @@ map headDirAngleMap; map speedMap; void initSequence(){ - startOfATrackSequence = -1; endOfATrackSequence = -1; sequenceSize = 1; - - } ostream &operator<<(ostream &out, FlyObject & fO) { @@ -107,8 +115,6 @@ ostream &operator<<(ostream &out, FrameInfo & fI) { } void bubbleSort(vector & fov) { - - //FlyObject a,b,c; for(int i=1; i & fov) { FlyObject c = fov[j]; fov[j] = fov[j+1]; fov[j+1] = c; - } - } - } - } void writeHist(const char* filename, map dataMap) { - cout << "In the beginning of the write hist\n"; - cout << "dataMap size "< temp(x,y); bresenhamLine.push_back(temp); } - } @@ -1130,8 +1131,6 @@ int sequenceCondition(FrameInfo prevFI,FrameInfo currentFI) { } - - void drawTheSequence(int startIndex, int endIndex, int isFirst, bool singleBlob, bool unprocessed) { cout << "Should draw "< cFV) { currentFO.setHead(cFOREV); currentFO.setHeadIsInDirectionMAEV(false); } - - + } @@ -1367,6 +1367,7 @@ void velocityDirection(int st, int end, pair &velDirectionF, pa } + double getSpeed(pair vector) { double value = vector.first*vector.first + vector.second*vector.second; value = sqrt(value); @@ -1376,6 +1377,7 @@ double getSpeed(pair vector) { } + void velocityDirections(int stIndex, int endIndex) { @@ -1453,9 +1455,7 @@ void velocityDirections(int stIndex, int endIndex) { */ } - - - + } @@ -1532,7 +1532,6 @@ void propagateDirections(int object, int s, int e, int origStart, int origEnd) { } else { cout << "For second"< intervalLength) { @@ -1738,8 +1735,6 @@ void propagateDirections(int object, int s, int e, int origStart, int origEnd) { } - - // propagate downwards prevFI = fIVector[s]; pFOVector = prevFI.getFOVector(); @@ -2022,17 +2017,6 @@ ofstream foutSt; ofstream foutDebugCen; ofstream foutDebugSpeed; -typedef void (*loggerfunc) (const string&); - -void logOn(const string& toprint){ - cout << toprint << endl; -} - -void logOff(const string& toprint){ -} - -loggerfunc vlog = NULL; - int main(int argc, char **argv) { @@ -2780,9 +2764,10 @@ void calculateStatistics(FrameInfo currentFI, string fileName, int isFirst, bool foutSt <<"Current frame is unprocessed"<