andrew@43: #pragma once andrew@43: andrew@43: #include "ofMain.h" andrew@43: #include "BeatAnnotationReader.h" andrew@43: #include "PlotTools.h" andrew@45: #include "MatchMultitrackAnnotationReader.h" andrew@45: #include "Histogram.h" andrew@43: andrew@49: #include "EwertAnnotationReader.h" andrew@49: andrew@49: #define NUMBER_OF_SCREENS 9 andrew@43: class testApp : public ofBaseApp{ andrew@43: andrew@43: public: andrew@43: void setup(); andrew@43: void update(); andrew@43: void draw(); andrew@43: andrew@43: void keyPressed (int key); andrew@43: void keyReleased(int key); andrew@43: void mouseMoved(int x, int y ); andrew@43: void mouseDragged(int x, int y, int button); andrew@43: void mousePressed(int x, int y, int button); andrew@43: void mouseReleased(int x, int y, int button); andrew@43: void windowResized(int w, int h); andrew@43: void dragEvent(ofDragInfo dragInfo); andrew@43: void gotMessage(ofMessage msg); andrew@43: andrew@43: typedef vector DoubleVector; andrew@43: typedef vector DoubleMatrix; andrew@43: DoubleMatrix GroundTruth; andrew@43: andrew@43: BeatAnnotationReader beatReader; andrew@43: andrew@48: void processFile(int file); andrew@48: andrew@47: void setFilePaths(int fileToLoad); andrew@47: void readInFiles(); andrew@47: void processResults(); andrew@49: void printPercentageTotals(); andrew@47: andrew@45: void drawAlignmentVectors(); andrew@45: andrew@43: PlotTools plotter; andrew@43: andrew@43: double xPlotMin, xPlotMax, yPlotMin, yPlotMax; andrew@45: void getYvalues(); andrew@45: void printPlotValues(); andrew@43: andrew@45: std::string matchPath; andrew@46: MatchMultitrackAnnotationReader matchBackwardsNotations; andrew@46: MatchMultitrackAnnotationReader matchForwardNotations; andrew@43: andrew@45: Histogram multiHistogram; andrew@46: Histogram matchBackwardsHistogram; andrew@46: Histogram matchForwardHistogram; andrew@45: andrew@48: Histogram multiAbsTotalHistogram; andrew@48: Histogram matchBackwardsAbsTotalHistogram; andrew@48: Histogram matchForwardAbsTotalHistogram; andrew@48: andrew@49: Histogram ewertHistogram; andrew@49: Histogram ewertAbsTotalHistogram; andrew@49: andrew@45: int screenToDraw; andrew@45: int histogramWidth, histogramBinNumber; andrew@45: andrew@47: andrew@47: std::string liveGroundTruthPath, rehearsalGroundTruthPath; andrew@47: std::string liveToRehMultitrackAlignmentPath; andrew@47: std::string liveToRehMatchOFpath, liveToRehMatchOBpath; andrew@47: andrew@47: int squareX, squareY, squareWidth, squareHeight; andrew@47: bool squareBeingDragged; andrew@47: void drawSquare(); andrew@47: void setCoordinatesToSquare(); andrew@47: andrew@49: EwertAnnotationReader ewertReader; andrew@49: void readEwertAnnotations(); andrew@49: std::string ewertAlignmentPath; andrew@53: bool ewertFlag; andrew@43: };