v2.0.0
Loading...
Searching...
No Matches
standard_montage.h
Go to the documentation of this file.
1//=============================================================================================================
29
30#ifndef STANDARD_MONTAGE_H
31#define STANDARD_MONTAGE_H
32
33//=============================================================================================================
34// INCLUDES
35//=============================================================================================================
36
37#include "../utils_global.h"
38
39//=============================================================================================================
40// EIGEN INCLUDES
41//=============================================================================================================
42
43#include <Eigen/Core>
44
45//=============================================================================================================
46// QT INCLUDES
47//=============================================================================================================
48
49#include <QStringList>
50#include <QMap>
51
52//=============================================================================================================
53// DEFINE NAMESPACE UTILSLIB
54//=============================================================================================================
55
56namespace UTILSLIB
57{
58
59//=============================================================================================================
64{
65 QString name;
66 Eigen::Vector3d pos;
67};
68
69//=============================================================================================================
74{
75public:
76 //=========================================================================================================
80 enum class System {
81 Standard_1020,
82 Standard_1010,
83 Standard_1005
84 };
85
86 //=========================================================================================================
94 static QList<ElectrodePosition> getMontage(System system);
95
96 //=========================================================================================================
104 static QStringList getElectrodeNames(System system);
105
106 //=========================================================================================================
117 static bool findElectrode(const QString& name, Eigen::Vector3d& pos);
118
119 //=========================================================================================================
123 static int electrodeCount(System system);
124
125private:
126 static QList<ElectrodePosition> buildStandard1020();
127 static QList<ElectrodePosition> buildStandard1010();
128};
129
130} // namespace UTILSLIB
131
132#endif // STANDARD_MONTAGE_H
Public umbrella header for UTILSLIB exposing the UTILSSHARED_EXPORT macro and build-info accessors.
#define UTILSSHARED_EXPORT
Shared utilities (I/O helpers, spectral analysis, layout management, warp algorithms).
Represents an electrode position in a montage.
Standard EEG montage with named electrode positions.
System
Supported standard montage systems.