annotate annotationCalculatorSrc/testApp.h @ 48:5359e2c0b0fb

Added data from six tracks. Absolute histogram
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Wed, 09 May 2012 21:55:16 +0100
parents 689704aa55d5
children 8df911733fdc
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@48 33 void processFile(int file);
andrew@48 34
andrew@47 35 void setFilePaths(int fileToLoad);
andrew@47 36 void readInFiles();
andrew@47 37 void processResults();
andrew@47 38
andrew@45 39 void drawAlignmentVectors();
andrew@45 40
andrew@43 41 PlotTools plotter;
andrew@43 42
andrew@43 43 double xPlotMin, xPlotMax, yPlotMin, yPlotMax;
andrew@45 44 void getYvalues();
andrew@45 45 void printPlotValues();
andrew@43 46
andrew@45 47 std::string matchPath;
andrew@46 48 MatchMultitrackAnnotationReader matchBackwardsNotations;
andrew@46 49 MatchMultitrackAnnotationReader matchForwardNotations;
andrew@43 50
andrew@45 51 Histogram multiHistogram;
andrew@46 52 Histogram matchBackwardsHistogram;
andrew@46 53 Histogram matchForwardHistogram;
andrew@45 54
andrew@48 55 Histogram multiAbsTotalHistogram;
andrew@48 56 Histogram matchBackwardsAbsTotalHistogram;
andrew@48 57 Histogram matchForwardAbsTotalHistogram;
andrew@48 58
andrew@45 59 int screenToDraw;
andrew@45 60 int histogramWidth, histogramBinNumber;
andrew@45 61
andrew@47 62
andrew@47 63 std::string liveGroundTruthPath, rehearsalGroundTruthPath;
andrew@47 64 std::string liveToRehMultitrackAlignmentPath;
andrew@47 65 std::string liveToRehMatchOFpath, liveToRehMatchOBpath;
andrew@47 66
andrew@47 67 int squareX, squareY, squareWidth, squareHeight;
andrew@47 68 bool squareBeingDragged;
andrew@47 69 void drawSquare();
andrew@47 70 void setCoordinatesToSquare();
andrew@47 71
andrew@43 72 };