andrew@43
|
1 #pragma once
|
andrew@43
|
2
|
andrew@43
|
3 #include "ofMain.h"
|
andrew@43
|
4 #include "BeatAnnotationReader.h"
|
andrew@43
|
5 #include "PlotTools.h"
|
andrew@45
|
6 #include "MatchMultitrackAnnotationReader.h"
|
andrew@45
|
7 #include "Histogram.h"
|
andrew@43
|
8
|
andrew@49
|
9 #include "EwertAnnotationReader.h"
|
andrew@49
|
10
|
andrew@49
|
11 #define NUMBER_OF_SCREENS 9
|
andrew@43
|
12 class testApp : public ofBaseApp{
|
andrew@43
|
13
|
andrew@43
|
14 public:
|
andrew@43
|
15 void setup();
|
andrew@43
|
16 void update();
|
andrew@43
|
17 void draw();
|
andrew@43
|
18
|
andrew@43
|
19 void keyPressed (int key);
|
andrew@43
|
20 void keyReleased(int key);
|
andrew@43
|
21 void mouseMoved(int x, int y );
|
andrew@43
|
22 void mouseDragged(int x, int y, int button);
|
andrew@43
|
23 void mousePressed(int x, int y, int button);
|
andrew@43
|
24 void mouseReleased(int x, int y, int button);
|
andrew@43
|
25 void windowResized(int w, int h);
|
andrew@43
|
26 void dragEvent(ofDragInfo dragInfo);
|
andrew@43
|
27 void gotMessage(ofMessage msg);
|
andrew@43
|
28
|
andrew@43
|
29 typedef vector<double> DoubleVector;
|
andrew@43
|
30 typedef vector<DoubleVector> DoubleMatrix;
|
andrew@43
|
31 DoubleMatrix GroundTruth;
|
andrew@43
|
32
|
andrew@43
|
33 BeatAnnotationReader beatReader;
|
andrew@43
|
34
|
andrew@48
|
35 void processFile(int file);
|
andrew@48
|
36
|
andrew@47
|
37 void setFilePaths(int fileToLoad);
|
andrew@47
|
38 void readInFiles();
|
andrew@47
|
39 void processResults();
|
andrew@49
|
40 void printPercentageTotals();
|
andrew@47
|
41
|
andrew@45
|
42 void drawAlignmentVectors();
|
andrew@45
|
43
|
andrew@43
|
44 PlotTools plotter;
|
andrew@43
|
45
|
andrew@43
|
46 double xPlotMin, xPlotMax, yPlotMin, yPlotMax;
|
andrew@45
|
47 void getYvalues();
|
andrew@45
|
48 void printPlotValues();
|
andrew@43
|
49
|
andrew@45
|
50 std::string matchPath;
|
andrew@46
|
51 MatchMultitrackAnnotationReader matchBackwardsNotations;
|
andrew@46
|
52 MatchMultitrackAnnotationReader matchForwardNotations;
|
andrew@43
|
53
|
andrew@45
|
54 Histogram multiHistogram;
|
andrew@46
|
55 Histogram matchBackwardsHistogram;
|
andrew@46
|
56 Histogram matchForwardHistogram;
|
andrew@45
|
57
|
andrew@48
|
58 Histogram multiAbsTotalHistogram;
|
andrew@48
|
59 Histogram matchBackwardsAbsTotalHistogram;
|
andrew@48
|
60 Histogram matchForwardAbsTotalHistogram;
|
andrew@48
|
61
|
andrew@49
|
62 Histogram ewertHistogram;
|
andrew@49
|
63 Histogram ewertAbsTotalHistogram;
|
andrew@49
|
64
|
andrew@45
|
65 int screenToDraw;
|
andrew@45
|
66 int histogramWidth, histogramBinNumber;
|
andrew@45
|
67
|
andrew@47
|
68
|
andrew@47
|
69 std::string liveGroundTruthPath, rehearsalGroundTruthPath;
|
andrew@47
|
70 std::string liveToRehMultitrackAlignmentPath;
|
andrew@47
|
71 std::string liveToRehMatchOFpath, liveToRehMatchOBpath;
|
andrew@47
|
72
|
andrew@47
|
73 int squareX, squareY, squareWidth, squareHeight;
|
andrew@47
|
74 bool squareBeingDragged;
|
andrew@47
|
75 void drawSquare();
|
andrew@47
|
76 void setCoordinatesToSquare();
|
andrew@47
|
77
|
andrew@49
|
78 EwertAnnotationReader ewertReader;
|
andrew@49
|
79 void readEwertAnnotations();
|
andrew@49
|
80 std::string ewertAlignmentPath;
|
andrew@53
|
81 bool ewertFlag;
|
andrew@43
|
82 };
|