Mercurial > hg > multitrack-audio-matcher
comparison annotationCalculatorSrc/testApp.h @ 49:8df911733fdc
Added new histogram functions - absolute error graphs like Match paper
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Tue, 22 May 2012 22:53:44 +0100 |
parents | 5359e2c0b0fb |
children | 5274e3b5479d |
comparison
equal
deleted
inserted
replaced
48:5359e2c0b0fb | 49:8df911733fdc |
---|---|
4 #include "BeatAnnotationReader.h" | 4 #include "BeatAnnotationReader.h" |
5 #include "PlotTools.h" | 5 #include "PlotTools.h" |
6 #include "MatchMultitrackAnnotationReader.h" | 6 #include "MatchMultitrackAnnotationReader.h" |
7 #include "Histogram.h" | 7 #include "Histogram.h" |
8 | 8 |
9 #define NUMBER_OF_SCREENS 4 | 9 #include "EwertAnnotationReader.h" |
10 | |
11 #define NUMBER_OF_SCREENS 9 | |
10 class testApp : public ofBaseApp{ | 12 class testApp : public ofBaseApp{ |
11 | 13 |
12 public: | 14 public: |
13 void setup(); | 15 void setup(); |
14 void update(); | 16 void update(); |
33 void processFile(int file); | 35 void processFile(int file); |
34 | 36 |
35 void setFilePaths(int fileToLoad); | 37 void setFilePaths(int fileToLoad); |
36 void readInFiles(); | 38 void readInFiles(); |
37 void processResults(); | 39 void processResults(); |
40 void printPercentageTotals(); | |
38 | 41 |
39 void drawAlignmentVectors(); | 42 void drawAlignmentVectors(); |
40 | 43 |
41 PlotTools plotter; | 44 PlotTools plotter; |
42 | 45 |
54 | 57 |
55 Histogram multiAbsTotalHistogram; | 58 Histogram multiAbsTotalHistogram; |
56 Histogram matchBackwardsAbsTotalHistogram; | 59 Histogram matchBackwardsAbsTotalHistogram; |
57 Histogram matchForwardAbsTotalHistogram; | 60 Histogram matchForwardAbsTotalHistogram; |
58 | 61 |
62 Histogram ewertHistogram; | |
63 Histogram ewertAbsTotalHistogram; | |
64 | |
59 int screenToDraw; | 65 int screenToDraw; |
60 int histogramWidth, histogramBinNumber; | 66 int histogramWidth, histogramBinNumber; |
61 | 67 |
62 | 68 |
63 std::string liveGroundTruthPath, rehearsalGroundTruthPath; | 69 std::string liveGroundTruthPath, rehearsalGroundTruthPath; |
67 int squareX, squareY, squareWidth, squareHeight; | 73 int squareX, squareY, squareWidth, squareHeight; |
68 bool squareBeingDragged; | 74 bool squareBeingDragged; |
69 void drawSquare(); | 75 void drawSquare(); |
70 void setCoordinatesToSquare(); | 76 void setCoordinatesToSquare(); |
71 | 77 |
78 EwertAnnotationReader ewertReader; | |
79 void readEwertAnnotations(); | |
80 std::string ewertAlignmentPath; | |
72 }; | 81 }; |