v2.0.0
Loading...
Searching...
No Matches
filter_chpi.h
Go to the documentation of this file.
1//=============================================================================================================
16
17#ifndef FILTER_CHPI_DSP_H
18#define FILTER_CHPI_DSP_H
19
20//=============================================================================================================
21// INCLUDES
22//=============================================================================================================
23
24#include "dsp_global.h"
25
26//=============================================================================================================
27// EIGEN INCLUDES
28//=============================================================================================================
29
30#include <Eigen/Core>
31
32//=============================================================================================================
33// QT INCLUDES
34//=============================================================================================================
35
36#include <QVector>
37
38//=============================================================================================================
39// FORWARD DECLARATIONS
40//=============================================================================================================
41
42namespace FIFFLIB { class FiffInfo; }
43
44//=============================================================================================================
45// DEFINE NAMESPACE UTILSLIB
46//=============================================================================================================
47
48namespace UTILSLIB
49{
50
51//=============================================================================================================
56{
57 double dNotchWidth = 2.0;
58 int iFilterOrder = 4;
59 bool bMegOnly = true;
60};
61
62//=============================================================================================================
76DSPSHARED_EXPORT void filterChpi(Eigen::MatrixXd& data,
77 const FIFFLIB::FiffInfo& info,
78 double sfreq,
79 const QVector<double>& hpiFreqs,
80 const FilterChpiParams& params = FilterChpiParams());
81
82//=============================================================================================================
96DSPSHARED_EXPORT void filterChpi(Eigen::MatrixXd& data,
97 const FIFFLIB::FiffInfo& info,
98 double sfreq,
99 const FilterChpiParams& params = FilterChpiParams());
100
101} // namespace UTILSLIB
102
103#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:56
Full FIFF measurement info: per-channel descriptors, sampling and filter setup, projectors,...
Definition fiff_info.h:88