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//=============================================================================================================
60{
61 int sourceIdx = -1;
62 double correlation = 0.0;
63 Eigen::Vector3d position;
64 Eigen::Vector3d orientation;
65};
66
67//=============================================================================================================
82{
83public:
84 //=========================================================================================================
91 explicit InvTrapMusic(int iMaxSources = 5, double dThreshold = 0.85);
92
93 //=========================================================================================================
104 QList<TrapMusicDipole> compute(const Eigen::MatrixXd& matLeadField,
105 const Eigen::MatrixXd& matData,
106 const Eigen::MatrixXd& matSourcePos,
107 int iNOrient = 3) const;
108
109 //=========================================================================================================
119 static Eigen::VectorXd scanCorrelations(const Eigen::MatrixXd& matLeadField,
120 const Eigen::MatrixXd& matSignalSubspace,
121 int iNOrient);
122
123private:
124 int m_iMaxSources;
125 double m_dThreshold;
126};
127
128} // namespace INVLIB
129
130#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.