v2.0.0
Loading...
Searching...
No Matches
inv_trap_music.h
Go to the documentation of this file.
1//=============================================================================================================
24
25#ifndef INV_TRAP_MUSIC_H
26#define INV_TRAP_MUSIC_H
27
28//=============================================================================================================
29// INCLUDES
30//=============================================================================================================
31
32#include "../inv_global.h"
33
34//=============================================================================================================
35// EIGEN INCLUDES
36//=============================================================================================================
37
38#include <Eigen/Core>
39
40//=============================================================================================================
41// QT INCLUDES
42//=============================================================================================================
43
44#include <QList>
45
46//=============================================================================================================
47// DEFINE NAMESPACE INVLIB
48//=============================================================================================================
49
50namespace INVLIB
51{
52
53//=============================================================================================================
58{
59 int sourceIdx = -1;
60 double correlation = 0.0;
61 Eigen::Vector3d position;
62 Eigen::Vector3d orientation;
63};
64
65//=============================================================================================================
78{
79public:
80 //=========================================================================================================
87 explicit InvTrapMusic(int iMaxSources = 5, double dThreshold = 0.85);
88
89 //=========================================================================================================
100 QList<TrapMusicDipole> compute(const Eigen::MatrixXd& matLeadField,
101 const Eigen::MatrixXd& matData,
102 const Eigen::MatrixXd& matSourcePos,
103 int iNOrient = 3) const;
104
105 //=========================================================================================================
115 static Eigen::VectorXd scanCorrelations(const Eigen::MatrixXd& matLeadField,
116 const Eigen::MatrixXd& matSignalSubspace,
117 int iNOrient);
118
119private:
120 int m_iMaxSources;
121 double m_dThreshold;
122};
123
124} // namespace INVLIB
125
126#endif // INV_TRAP_MUSIC_H
INVLIB library export/import macros, build-info accessors, and namespace docstring for the inverse-so...
#define INVSHARED_EXPORT
Definition inv_global.h:38
Inverse source estimation (MNE, dSPM, sLORETA, dipole fitting).
Result of a TRAP-MUSIC source scan.
Eigen::Vector3d position
Eigen::Vector3d orientation
static Eigen::VectorXd scanCorrelations(const Eigen::MatrixXd &matLeadField, const Eigen::MatrixXd &matSignalSubspace, int iNOrient)
Compute the MUSIC-type subspace correlation for all source locations.
InvTrapMusic(int iMaxSources=5, double dThreshold=0.85)
Construct TRAP-MUSIC scanner.
QList< TrapMusicDipole > compute(const Eigen::MatrixXd &matLeadField, const Eigen::MatrixXd &matData, const Eigen::MatrixXd &matSourcePos, int iNOrient=3) const
Compute TRAP-MUSIC source localization.