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
58{
60}
61namespace FIFFLIB
62{
63class FiffInfo;
64}
65
66//=============================================================================================================
67// DEFINE NAMESPACE INVLIB
68//=============================================================================================================
69
70namespace INVLIB
71{
72
73//=============================================================================================================
85{
86public:
87 //=========================================================================================================
106 static InvBeamformer makeDICS(const FIFFLIB::FiffInfo& info,
107 const MNELIB::MNEForwardSolution& forward,
108 const std::vector<Eigen::MatrixXd>& csdMatrices,
109 const Eigen::VectorXd& frequencies,
110 double reg = 0.05,
111 bool realFilter = true,
112 const FIFFLIB::FiffCov& noiseCov = FIFFLIB::FiffCov(),
115 bool reduceRank = false,
117
118 //=========================================================================================================
130 static InvSourceEstimate applyDICSCsd(const std::vector<Eigen::MatrixXd>& csdMatrices,
131 const Eigen::VectorXd& frequencies,
132 const InvBeamformer& filters);
133
134 //=========================================================================================================
149 static InvSourceEstimate applyDICS(const Eigen::MatrixXd& data,
150 float tmin,
151 float tstep,
152 const InvBeamformer& filters,
153 int freqIdx = 0);
154
155 //=========================================================================================================
167 static QList<InvSourceEstimate> applyDICSEpochs(const QList<Eigen::MatrixXd>& epochs,
168 float tmin,
169 float tstep,
170 const InvBeamformer& filters,
171 int freqIdx = 0);
172};
173
174} // NAMESPACE INVLIB
175
176#endif // INV_DICS_H
Noise / data covariance matrix as stored under FIFFB_MNE_COV, with channel names, kind,...
InvBeamformer value type — container for pre-computed LCMV / DICS spatial filters and associated meta...
Strongly-typed enumerations shared by the LCMV and DICS beamformer pipelines.
INVLIB library export/import macros, build-info accessors, and namespace docstring for the inverse-so...
#define INVSHARED_EXPORT
Definition inv_global.h:38
InvSourceEstimate value type — central source-space data container produced by every INVLIB inverse s...
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:82
Full FIFF measurement info: per-channel descriptors, sampling and filter setup, projectors,...
Definition fiff_info.h:90
Computed beamformer spatial filter container.
DICS beamformer (frequency-domain).
Definition inv_dics.h:85
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:262
static QList< InvSourceEstimate > applyDICSEpochs(const QList< Eigen::MatrixXd > &epochs, float tmin, float tstep, const InvBeamformer &filters, int freqIdx=0)
Definition inv_dics.cpp:312
static InvSourceEstimate applyDICSCsd(const std::vector< Eigen::MatrixXd > &csdMatrices, const Eigen::VectorXd &frequencies, const InvBeamformer &filters)
Definition inv_dics.cpp:208
Source-space inverse-solution container with dense grid plus optional focal-dipole,...
In-memory representation of an -fwd.fif forward solution.