v2.0.0
Loading...
Searching...
No Matches
ieeg_reference.h
Go to the documentation of this file.
1//=============================================================================================================
17
18#ifndef IEEG_REFERENCE_H
19#define IEEG_REFERENCE_H
20
21//=============================================================================================================
22// INCLUDES
23//=============================================================================================================
24
25#include "ieeg_global.h"
26
27//=============================================================================================================
28// EIGEN INCLUDES
29//=============================================================================================================
30
31#include <Eigen/Core>
32#include <Eigen/SparseCore>
33
34//=============================================================================================================
35// QT INCLUDES
36//=============================================================================================================
37
38#include <QString>
39#include <QVector>
40
41//=============================================================================================================
42// DEFINE NAMESPACE IEEGLIB
43//=============================================================================================================
44
45namespace IEEGLIB
46{
47
49
50//=============================================================================================================
57{
58 int anode = -1;
59 int cathode = -1;
60 QString name;
61 Eigen::Vector3f position = Eigen::Vector3f::Zero();
62};
63
64//=============================================================================================================
71{
72public:
74 static constexpr float kMaxNeighbourDistance = 0.015f;
75
76 //=========================================================================================================
85 static QVector<IeegBipolarPair> bipolarPairs(const IeegImplantation& implantation);
86
87 //=========================================================================================================
95 static Eigen::SparseMatrix<double> bipolarMatrix(const QVector<IeegBipolarPair>& pairs, int contactCount);
96};
97
98} // namespace IEEGLIB
99
100#endif // IEEG_REFERENCE_H
IEEGLIB shared-library export macro and build-info accessors for the intracranial EEG library.
#define IEEGSHARED_EXPORT
Definition ieeg_global.h:32
Intracranial EEG (sEEG, ECoG): implantation, bipolar referencing, cortical mapping.
Contacts of an sEEG / ECoG implantation and the leads they belong to.
One bipolar derivation: anode minus cathode.
Bipolar montages along sEEG / ECoG leads.
static constexpr float kMaxNeighbourDistance
static Eigen::SparseMatrix< double > bipolarMatrix(const QVector< IeegBipolarPair > &pairs, int contactCount)
static QVector< IeegBipolarPair > bipolarPairs(const IeegImplantation &implantation)