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