v2.0.0
Loading...
Searching...
No Matches
filter_chpi.h
Go to the documentation of this file.
1//=============================================================================================================
18
19#ifndef FILTER_CHPI_DSP_H
20#define FILTER_CHPI_DSP_H
21
22//=============================================================================================================
23// INCLUDES
24//=============================================================================================================
25
26#include "dsp_global.h"
27
28//=============================================================================================================
29// EIGEN INCLUDES
30//=============================================================================================================
31
32#include <Eigen/Core>
33
34//=============================================================================================================
35// QT INCLUDES
36//=============================================================================================================
37
38#include <QVector>
39
40//=============================================================================================================
41// FORWARD DECLARATIONS
42//=============================================================================================================
43
44namespace FIFFLIB
45{
46class FiffInfo;
47}
48
49//=============================================================================================================
50// DEFINE NAMESPACE UTILSLIB
51//=============================================================================================================
52
53namespace UTILSLIB
54{
55
56//=============================================================================================================
63{
64 double dNotchWidth = 2.0;
65 int iFilterOrder = 4;
66 bool bMegOnly = true;
67};
68
69//=============================================================================================================
83DSPSHARED_EXPORT void filterChpi(Eigen::MatrixXd& data,
84 const FIFFLIB::FiffInfo& info,
85 double sfreq,
86 const QVector<double>& hpiFreqs,
87 const FilterChpiParams& params = FilterChpiParams());
88
89//=============================================================================================================
103DSPSHARED_EXPORT void filterChpi(Eigen::MatrixXd& data,
104 const FIFFLIB::FiffInfo& info,
105 double sfreq,
106 const FilterChpiParams& params = FilterChpiParams());
107
108} // namespace UTILSLIB
109
110#endif // FILTER_CHPI_DSP_H
Export/import macros and namespace declaration for the DSP library.
#define DSPSHARED_EXPORT
Definition dsp_global.h:50
FIFF file I/O, in-memory data structures and high-level readers/writers.
Shared utilities (I/O helpers, spectral analysis, layout management, warp algorithms).
DSPSHARED_EXPORT void filterChpi(Eigen::MatrixXd &data, const FIFFLIB::FiffInfo &info, double sfreq, const QVector< double > &hpiFreqs, const FilterChpiParams &params=FilterChpiParams())
Remove cHPI excitation signals from MEG data by notch filtering.
Parameters for cHPI notch filtering.
Definition filter_chpi.h:63
Full FIFF measurement info: per-channel descriptors, sampling and filter setup, projectors,...
Definition fiff_info.h:90