Mercurial > hg > multitrack-audio-matcher
comparison annotationCalculatorSrc/testApp.h @ 45:d23685b9e766
Fixed the alignment error caluculations and added histogram plotting
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Tue, 08 May 2012 21:53:11 +0100 |
parents | b7ad807c9cde |
children | ba36a1721538 |
comparison
equal
deleted
inserted
replaced
44:73fbbc92fdfb | 45:d23685b9e766 |
---|---|
1 #pragma once | 1 #pragma once |
2 | 2 |
3 #include "ofMain.h" | 3 #include "ofMain.h" |
4 #include "BeatAnnotationReader.h" | 4 #include "BeatAnnotationReader.h" |
5 #include "PlotTools.h" | 5 #include "PlotTools.h" |
6 #include "MatchMultitrackAnnotationReader.h" | |
7 #include "Histogram.h" | |
6 | 8 |
9 #define NUMBER_OF_SCREENS 3 | |
7 class testApp : public ofBaseApp{ | 10 class testApp : public ofBaseApp{ |
8 | 11 |
9 public: | 12 public: |
10 void setup(); | 13 void setup(); |
11 void update(); | 14 void update(); |
25 typedef vector<DoubleVector> DoubleMatrix; | 28 typedef vector<DoubleVector> DoubleMatrix; |
26 DoubleMatrix GroundTruth; | 29 DoubleMatrix GroundTruth; |
27 | 30 |
28 BeatAnnotationReader beatReader; | 31 BeatAnnotationReader beatReader; |
29 | 32 |
33 void drawAlignmentVectors(); | |
34 | |
30 PlotTools plotter; | 35 PlotTools plotter; |
31 | 36 |
32 double xPlotMin, xPlotMax, yPlotMin, yPlotMax; | 37 double xPlotMin, xPlotMax, yPlotMin, yPlotMax; |
38 void getYvalues(); | |
39 void printPlotValues(); | |
33 | 40 |
41 std::string matchPath; | |
42 MatchMultitrackAnnotationReader matchNotations; | |
34 | 43 |
44 Histogram multiHistogram; | |
45 Histogram matchHistogram; | |
46 | |
47 int screenToDraw; | |
48 int histogramWidth, histogramBinNumber; | |
49 | |
35 }; | 50 }; |