v2.0.0
Loading...
Searching...
No Matches
compute_fwd_settings.cpp
Go to the documentation of this file.
1//=============================================================================================================
12
13//=============================================================================================================
14// INCLUDES
15//=============================================================================================================
16
18
19//=============================================================================================================
20// USED NAMESPACES
21//=============================================================================================================
22
23using namespace Eigen;
24using namespace FIFFLIB;
25using namespace FWDLIB;
26
27//=============================================================================================================
28// DEFINES
29//=============================================================================================================
30
31//=============================================================================================================
32// STATIC DEFINITIONS
33//=============================================================================================================
34
35//=============================================================================================================
36// DEFINE MEMBER METHODS
37//=============================================================================================================
38
43{
44 initMembers();
45}
46
47//=============================================================================================================
48
53{
54 //ToDo Garbage collection
55}
56
57//=============================================================================================================
58
66{
67 if (srcname.isEmpty()) {
68 qCritical("Source space name is missing. Use the --src option to specify it.");
69 return;
70 }
71 if (!mri_head_ident) {
72 if (mriname.isEmpty() && transname.isEmpty()) {
73 qCritical("MRI <-> head coordinate transformation is missing. Use the --mri or --trans option to specify it.");
74 return;
75 }
76 }
77 if (measname.isEmpty()) {
78 qCritical("Source of coil and electrode locations is missing. Use the --meas option to specify it.");
79 return;
80 }
81 if (solname.isEmpty()) {
82 qCritical("Solution name is missing. Use the --fwd option to specify it.");
83 return;
84 }
85 if (! (include_meg || include_eeg)) {
86 qCritical("Employ the --meg and --eeg options to select MEG and/or EEG");
87 return;
88 }
89}
90
91//=============================================================================================================
92
96void ComputeFwdSettings::initMembers()
97{
98 // Init origin
99 r0 << 0.0f,0.0f,0.04f;
100
101 mri_head_ident = false;
102 filter_spaces = true;
103 accurate = false;
104 fixed_ori = false;
105 include_meg = false;
106 include_eeg = false;
107 compute_grad = false;
108 mindist = 0.0f;
110 do_all = false;
111 nlabel = 0;
112
113 eeg_sphere_rad = 0.09f;
114 scale_eeg_pos = false;
115 use_equiv_eeg = true;
116 use_threads = true;
117
118 pFiffInfo = nullptr;
120}
Parameter object holding the CLI/script-level configuration consumed by ComputeFwd.
return FiffCoordTrans(from_frame, to_frame, R, moveVec)
#define FIFFV_COORD_HEAD
FIFF file I/O, in-memory data structures and high-level readers/writers.
Forward modelling — BEM solver, spherical models, sensor/coil definitions and the lead-field assembly...
Definition compute_fwd.h:83
FIFFLIB::FiffCoordTrans meg_head_t
QSharedPointer< FIFFLIB::FiffInfo > pFiffInfo