v2.0.0
Loading...
Searching...
No Matches
compute_fwd_settings.cpp
Go to the documentation of this file.
1
2//=============================================================================================================
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
43
44//=============================================================================================================
45// USED NAMESPACES
46//=============================================================================================================
47
48using namespace Eigen;
49using namespace FIFFLIB;
50using namespace FWDLIB;
51
52//=============================================================================================================
53// DEFINES
54//=============================================================================================================
55
56//=============================================================================================================
57// STATIC DEFINITIONS
58//=============================================================================================================
59
60//=============================================================================================================
61// DEFINE MEMBER METHODS
62//=============================================================================================================
63
68{
69 initMembers();
70}
71
72//=============================================================================================================
73
78{
79 //ToDo Garbage collection
80}
81
82//=============================================================================================================
83
91{
92 if (srcname.isEmpty()) {
93 qCritical("Source space name is missing. Use the --src option to specify it.");
94 return;
95 }
96 if (!mri_head_ident) {
97 if (mriname.isEmpty() && transname.isEmpty()) {
98 qCritical("MRI <-> head coordinate transformation is missing. Use the --mri or --trans option to specify it.");
99 return;
100 }
101 }
102 if (measname.isEmpty()) {
103 qCritical("Source of coil and electrode locations is missing. Use the --meas option to specify it.");
104 return;
105 }
106 if (solname.isEmpty()) {
107 qCritical("Solution name is missing. Use the --fwd option to specify it.");
108 return;
109 }
110 if (! (include_meg || include_eeg)) {
111 qCritical("Employ the --meg and --eeg options to select MEG and/or EEG");
112 return;
113 }
114}
115
116//=============================================================================================================
117
121void ComputeFwdSettings::initMembers()
122{
123 // Init origin
124 r0 << 0.0f,0.0f,0.04f;
125
126 mri_head_ident = false;
127 filter_spaces = true;
128 accurate = false;
129 fixed_ori = false;
130 include_meg = false;
131 include_eeg = false;
132 compute_grad = false;
133 mindist = 0.0f;
135 do_all = false;
136 nlabel = 0;
137
138 eeg_sphere_rad = 0.09f;
139 scale_eeg_pos = false;
140 use_equiv_eeg = true;
141 use_threads = true;
142
143 pFiffInfo = nullptr;
145}
#define FIFFV_COORD_HEAD
ComputeFwdSettings class declaration.
FIFF file I/O and data structures (raw, epochs, evoked, covariance, forward).
Forward modelling (BEM, MEG/EEG lead fields).
Definition compute_fwd.h:91
Coordinate transformation description.
FIFFLIB::FiffCoordTrans meg_head_t
QSharedPointer< FIFFLIB::FiffInfo > pFiffInfo