v2.0.0
Loading...
Searching...
No Matches
inv_dics.h
Go to the documentation of this file.
1//=============================================================================================================
24
25#ifndef INV_DICS_H
26#define INV_DICS_H
27
28//=============================================================================================================
29// INCLUDES
30//=============================================================================================================
31
32#include "../inv_global.h"
34#include "inv_beamformer.h"
36
37//=============================================================================================================
38// EIGEN INCLUDES
39//=============================================================================================================
40
41#include <Eigen/Core>
42
43#include <fiff/fiff_cov.h>
44
45#include <QList>
46
47//=============================================================================================================
48// STL INCLUDES
49//=============================================================================================================
50
51#include <vector>
52
53//=============================================================================================================
54// FORWARD DECLARATIONS
55//=============================================================================================================
56
57namespace MNELIB { class MNEForwardSolution; }
58namespace FIFFLIB { class FiffInfo; }
59
60//=============================================================================================================
61// DEFINE NAMESPACE INVLIB
62//=============================================================================================================
63
64namespace INVLIB
65{
66
67//=============================================================================================================
88{
89public:
90
91 //=========================================================================================================
110 static InvBeamformer makeDICS(const FIFFLIB::FiffInfo &info,
111 const MNELIB::MNEForwardSolution &forward,
112 const std::vector<Eigen::MatrixXd> &csdMatrices,
113 const Eigen::VectorXd &frequencies,
114 double reg = 0.05,
115 bool realFilter = true,
116 const FIFFLIB::FiffCov &noiseCov = FIFFLIB::FiffCov(),
119 bool reduceRank = false,
121
122 //=========================================================================================================
134 static InvSourceEstimate applyDICSCsd(const std::vector<Eigen::MatrixXd> &csdMatrices,
135 const Eigen::VectorXd &frequencies,
136 const InvBeamformer &filters);
137
138 //=========================================================================================================
153 static InvSourceEstimate applyDICS(const Eigen::MatrixXd &data,
154 float tmin,
155 float tstep,
156 const InvBeamformer &filters,
157 int freqIdx = 0);
158
159 //=========================================================================================================
171 static QList<InvSourceEstimate> applyDICSEpochs(const QList<Eigen::MatrixXd> &epochs,
172 float tmin,
173 float tstep,
174 const InvBeamformer &filters,
175 int freqIdx = 0);
176};
177
178} // NAMESPACE INVLIB
179
180#endif // INV_DICS_H
Noise / data covariance matrix as stored under FIFFB_MNE_COV, with channel names, kind,...
InvSourceEstimate value type — central source-space data container produced by every INVLIB inverse s...
Strongly-typed enumerations shared by the LCMV and DICS beamformer pipelines.
InvBeamformer value type — container for pre-computed LCMV / DICS spatial filters and associated meta...
INVLIB library export/import macros, build-info accessors, and namespace docstring for the inverse-so...
#define INVSHARED_EXPORT
Definition inv_global.h:38
Core MNE data structures (source spaces, source estimates, hemispheres).
FIFF file I/O, in-memory data structures and high-level readers/writers.
Inverse source estimation (MNE, dSPM, sLORETA, dipole fitting).
FIFF noise / data covariance: matrix, channel names, kind, applied projectors, bads,...
Definition fiff_cov.h:79
Full FIFF measurement info: per-channel descriptors, sampling and filter setup, projectors,...
Definition fiff_info.h:88
Computed beamformer spatial filter container.
DICS beamformer (frequency-domain).
Definition inv_dics.h:88
static InvBeamformer makeDICS(const FIFFLIB::FiffInfo &info, const MNELIB::MNEForwardSolution &forward, const std::vector< Eigen::MatrixXd > &csdMatrices, const Eigen::VectorXd &frequencies, double reg=0.05, bool realFilter=true, const FIFFLIB::FiffCov &noiseCov=FIFFLIB::FiffCov(), BeamformerPickOri pickOri=BeamformerPickOri::None, BeamformerWeightNorm weightNorm=BeamformerWeightNorm::UnitNoiseGain, bool reduceRank=false, BeamformerInversion invMethod=BeamformerInversion::Matrix)
Definition inv_dics.cpp:53
static InvSourceEstimate applyDICS(const Eigen::MatrixXd &data, float tmin, float tstep, const InvBeamformer &filters, int freqIdx=0)
Definition inv_dics.cpp:250
static QList< InvSourceEstimate > applyDICSEpochs(const QList< Eigen::MatrixXd > &epochs, float tmin, float tstep, const InvBeamformer &filters, int freqIdx=0)
Definition inv_dics.cpp:299
static InvSourceEstimate applyDICSCsd(const std::vector< Eigen::MatrixXd > &csdMatrices, const Eigen::VectorXd &frequencies, const InvBeamformer &filters)
Definition inv_dics.cpp:197
Source-space inverse-solution container with dense grid plus optional focal-dipole,...
In-memory representation of an -fwd.fif forward solution.