annotate annotationCalculatorSrc/testApp.h @ 46:ba36a1721538

Added abs median calculation, match forwards and backwards paths
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Tue, 08 May 2012 23:16:00 +0100
parents d23685b9e766
children 689704aa55d5
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@46 9 #define NUMBER_OF_SCREENS 4
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@46 42 MatchMultitrackAnnotationReader matchBackwardsNotations;
andrew@46 43 MatchMultitrackAnnotationReader matchForwardNotations;
andrew@43 44
andrew@45 45 Histogram multiHistogram;
andrew@46 46 Histogram matchBackwardsHistogram;
andrew@46 47 Histogram matchForwardHistogram;
andrew@45 48
andrew@45 49 int screenToDraw;
andrew@45 50 int histogramWidth, histogramBinNumber;
andrew@45 51
andrew@43 52 };