annotate 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
rev   line source
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@45 9 #define NUMBER_OF_SCREENS 3
andrew@43 10 class testApp : public ofBaseApp{
andrew@43 11
andrew@43 12 public:
andrew@43 13 void setup();
andrew@43 14 void update();
andrew@43 15 void draw();
andrew@43 16
andrew@43 17 void keyPressed (int key);
andrew@43 18 void keyReleased(int key);
andrew@43 19 void mouseMoved(int x, int y );
andrew@43 20 void mouseDragged(int x, int y, int button);
andrew@43 21 void mousePressed(int x, int y, int button);
andrew@43 22 void mouseReleased(int x, int y, int button);
andrew@43 23 void windowResized(int w, int h);
andrew@43 24 void dragEvent(ofDragInfo dragInfo);
andrew@43 25 void gotMessage(ofMessage msg);
andrew@43 26
andrew@43 27 typedef vector<double> DoubleVector;
andrew@43 28 typedef vector<DoubleVector> DoubleMatrix;
andrew@43 29 DoubleMatrix GroundTruth;
andrew@43 30
andrew@43 31 BeatAnnotationReader beatReader;
andrew@43 32
andrew@45 33 void drawAlignmentVectors();
andrew@45 34
andrew@43 35 PlotTools plotter;
andrew@43 36
andrew@43 37 double xPlotMin, xPlotMax, yPlotMin, yPlotMax;
andrew@45 38 void getYvalues();
andrew@45 39 void printPlotValues();
andrew@43 40
andrew@45 41 std::string matchPath;
andrew@45 42 MatchMultitrackAnnotationReader matchNotations;
andrew@43 43
andrew@45 44 Histogram multiHistogram;
andrew@45 45 Histogram matchHistogram;
andrew@45 46
andrew@45 47 int screenToDraw;
andrew@45 48 int histogramWidth, histogramBinNumber;
andrew@45 49
andrew@43 50 };