47 #include <fiff/fiff_evoked.h>
61 #include <QGuiApplication>
71 using namespace FSLIB;
91 int main(
int argc,
char *argv[])
93 QGuiApplication a(argc, argv);
98 QFile t_fileFwd(
"./MNE-sample-data/MEG/sample/sample_audvis-meg-eeg-oct-6-fwd.fif");
105 AnnotationSet t_annotSet(
"./MNE-sample-data/subjects/sample/label/lh.aparc.a2009s.annot",
"./MNE-sample-data/subjects/sample/label/rh.aparc.a2009s.annot");
106 SurfaceSet t_surfSet(
"./MNE-sample-data/subjects/sample/surf/lh.white",
"./MNE-sample-data/subjects/sample/surf/rh.white");
108 QList<Label> t_qListLabels;
109 QList<RowVector4i> t_qListRGBAs;
112 t_annotSet.toLabels(t_surfSet, t_qListLabels, t_qListRGBAs);
114 InverseView view(t_Fwd.src, t_qListLabels, t_qListRGBAs, 24,
true);
116 if (view.stereoType() != QGLView::RedCyanAnaglyph)
117 view.camera()->setEyeSeparation(0.3f);
118 QStringList args = QCoreApplication::arguments();
119 int w_pos = args.indexOf(
"-width");
120 int h_pos = args.indexOf(
"-height");
121 if (w_pos >= 0 && h_pos >= 0)
124 int w = args.at(w_pos + 1).toInt(&ok);
127 qWarning() <<
"Could not parse width argument:" << args;
130 int h = args.at(h_pos + 1).toInt(&ok);
133 qWarning() <<
"Could not parse height argument:" << args;
140 view.resize(800, 600);
142 view.setTitle(QString(
"Online Brain Monitoring"));
Minimum norm class declaration.
Surface class declaration.
MNESourceEstimate class declaration.
AnnotationSet class declaration.
InverseView class declaration.
A hemisphere set of surfaces.