MNE-CPP  beta 1.0
main.cpp
1 //=============================================================================================================
36 //*************************************************************************************************************
37 //=============================================================================================================
38 // INCLUDES
39 //=============================================================================================================
40 
41 #include <iostream>
42 #include <mne/mne.h>
43 
44 
45 //*************************************************************************************************************
46 //=============================================================================================================
47 // QT INCLUDES
48 //=============================================================================================================
49 
50 #include <QtCore/QCoreApplication>
51 
52 
53 //*************************************************************************************************************
54 //=============================================================================================================
55 // USED NAMESPACES
56 //=============================================================================================================
57 
58 using namespace MNELIB;
59 
60 
61 //*************************************************************************************************************
62 //=============================================================================================================
63 // MAIN
64 //=============================================================================================================
65 
66 //=============================================================================================================
75 int main(int argc, char *argv[])
76 {
77  QCoreApplication a(argc, argv);
78 
79  QFile t_fileForwardSolution("./MNE-sample-data/MEG/sample/sample_audvis-meg-eeg-oct-6-fwd.fif");
80  MNEForwardSolution t_ForwardSolution(t_fileForwardSolution);
81 
82  if(t_ForwardSolution.source_ori != -1)
83  {
84  std::cout << "\nfirst 10 rows and columns of the Gain Matrix:\n" << t_ForwardSolution.sol->data.block(0,0,10,10) << std::endl;
85  std::cout << "\nfirst 10 dipole coordinates:\n" << t_ForwardSolution.source_rr.block(0,0,10,3) << std::endl ;
86  std::cout << "\nfirst 10 dipole normales:\n" << t_ForwardSolution.source_nn.block(0,0,10,3) << std::endl ;
87  }
88 
89  return a.exec();
90 }