MNE-CPP  beta 1.0
main.cpp
1 //MATCHING PURSUIT
2 //=============================================================================================================
37 //*************************************************************************************************************
38 //=============================================================================================================
39 // INCLUDES
40 //=============================================================================================================
41 
42 #include <iostream>
43 #include <vector>
44 #include <math.h>
45 #include <fiff/fiff.h>
46 #include <mne/mne.h>
47 #include <utils/mp/atom.h>
48 #include <utils/mp/adaptivemp.h>
49 #include "mainwindow.h"
50 
51 //*************************************************************************************************************
52 //=============================================================================================================
53 // QT INCLUDES
54 //=============================================================================================================
55 
56 #include <QtGui>
57 #include <QApplication>
58 #include <QDateTime>
59 
60 //*************************************************************************************************************
61 //=============================================================================================================
62 // USED NAMESPACES
63 //=============================================================================================================
64 
65 using namespace MNELIB;
66 using namespace UTILSLIB;
67 
68 //*************************************************************************************************************
69 //=============================================================================================================
70 // FORWARD DECLARATIONS
71 //=============================================================================================================
72 
73 MainWindow* mainWindow = NULL;
74 
75 //*************************************************************************************************************
76 //=============================================================================================================
77 // MAIN
78 //=============================================================================================================
79 
88 int main(int argc, char *argv[])
89 {
90  QApplication a(argc, argv);
91 
92  //set application settings
93  QCoreApplication::setOrganizationName("DKnobl MHenfling");
94  QApplication::setApplicationName("MatchingPursuit Viewer");
95 
96  QSettings settings;
97  bool was_maximized = settings.value("maximized", false).toBool();
98  mainWindow = new MainWindow();
99  if(was_maximized)
100  mainWindow->showMaximized();
101  else
102  mainWindow->show();
103 
104  return a.exec();
105 }
ADAPIVEMP class declaration, providing the implemetation of the Matching Pursuit Algorithm introduced...
ATOM class declaration, providing core features and parameters of Atoms used in Matching Pursiut Algo...
FIFF class declaration, which provides static wrapper functions to stay consistent with mne matlab to...