56 #include <QtCore/QCoreApplication>
82 int main(
int argc,
char *argv[])
88 QCoreApplication a(argc, argv);
91 QFile t_fileRaw(
"./MNE-sample-data/baby_meg/babymegtest1.fif");
98 QList<QVector<double> > inputPoints;
99 QList<QVector<double> > outputPoints;
101 QFile out(
"./MNE_Browse_Raw_Resources/Templates/Layouts/babymeg-mag-outer-layer.lout");
102 QFile out_file_3d(
"./MNE_Browse_Raw_Resources/Templates/Layouts/3D_points_all.lout");
103 QTextStream out3D(&out_file_3d);
105 if (!out_file_3d.open(QIODevice::WriteOnly)) {
106 std::cout<<
"could not open out_file_3d file";
107 qDebug()<<
"could not open out_file_3d file";
110 for(
int i = 0; i<fiffInfo.
ch_names.size(); i++) {
111 int kind = fiffInfo.
chs.at(i).coil_type;
114 QVector<double> temp;
115 double x = fiffInfo.
chs.at(i).loc(0,0) * 100;
116 double y = fiffInfo.
chs.at(i).loc(1,0) * 100;
117 double z = fiffInfo.
chs.at(i).loc(2,0) * 100;
122 inputPoints.append(temp);
124 std::cout << x <<
" " << y <<
" " << z <<std::endl;
126 out3D << i+1 <<
" " << fiffInfo.
ch_names.at(i) <<
" " << x <<
" " << y <<
" " << z << endl;
138 if(inputPoints.size()>0)
139 LayoutMaker::makeLayout(inputPoints,
LayoutLoader class declaration.
FIFF measurement file information.
FIFF raw measurement data.
#define FIFFV_COIL_BABY_REF_MAG
FIFF class declaration, which provides static wrapper functions to stay consistent with mne matlab to...