56 #include <QGuiApplication>
65 using namespace FSLIB;
82 int main(
int argc,
char *argv[])
84 QGuiApplication a(argc, argv);
87 AnnotationSet t_annotSet(
"./MNE-sample-data/subjects/sample/label/lh.aparc.a2009s.annot",
"./MNE-sample-data/subjects/sample/label/rh.aparc.a2009s.annot");
88 SurfaceSet t_surfSet(
"./MNE-sample-data/subjects/sample/surf/lh.white",
"./MNE-sample-data/subjects/sample/surf/rh.white");
90 QList<Label> t_qListLabels;
91 QList<RowVector4i> t_qListRGBAs;
93 t_annotSet.toLabels(t_surfSet, t_qListLabels, t_qListRGBAs);
95 LabelView view(t_surfSet, t_qListLabels, t_qListRGBAs);
97 if (view.stereoType() != QGLView::RedCyanAnaglyph)
98 view.camera()->setEyeSeparation(0.3f);
99 QStringList args = QCoreApplication::arguments();
100 int w_pos = args.indexOf(
"-width");
101 int h_pos = args.indexOf(
"-height");
102 if (w_pos >= 0 && h_pos >= 0)
105 int w = args.at(w_pos + 1).toInt(&ok);
108 qWarning() <<
"Could not parse width argument:" << args;
111 int h = args.at(h_pos + 1).toInt(&ok);
114 qWarning() <<
"Could not parse height argument:" << args;
121 view.resize(800, 600);
LabelView class declaration.
Surface class declaration.
AnnotationSet class declaration.
A hemisphere set of surfaces.