v2.0.0
Loading...
Searching...
No Matches
annotate_artifact.h
Go to the documentation of this file.
1//=============================================================================================================
29
30#ifndef ANNOTATE_ARTIFACT_DSP_H
31#define ANNOTATE_ARTIFACT_DSP_H
32
33//=============================================================================================================
34// INCLUDES
35//=============================================================================================================
36
37#include "dsp_global.h"
39
40//=============================================================================================================
41// EIGEN INCLUDES
42//=============================================================================================================
43
44#include <Eigen/Core>
45
46//=============================================================================================================
47// QT INCLUDES
48//=============================================================================================================
49
50#include <QString>
51
52//=============================================================================================================
53// STL INCLUDES
54//=============================================================================================================
55
56#include <limits>
57
58//=============================================================================================================
59// FORWARD DECLARATIONS
60//=============================================================================================================
61
62namespace FIFFLIB { class FiffInfo; }
63
64//=============================================================================================================
65// DEFINE NAMESPACE UTILSLIB
66//=============================================================================================================
67
68namespace UTILSLIB {
69
70//=============================================================================================================
75{
76 double dThreshold = 5.0;
77 double dFilterLow = 110.0;
78 double dFilterHigh = 140.0;
79 int iFilterOrder = 4;
80 double dMinDuration = 0.1;
81 double dMinGapSec = 0.25;
82};
83
84//=============================================================================================================
89{
90 double dPeakMin = -std::numeric_limits<double>::infinity();
91 double dPeakMax = std::numeric_limits<double>::infinity();
92 double dFlatMin = 0.0;
93 double dWindowSec = 0.5;
94 double dMinDuration = 0.0;
95 QString badDescription = "BAD_amplitude";
96};
97
98//=============================================================================================================
117 const Eigen::MatrixXd& data,
118 const FIFFLIB::FiffInfo& info,
119 double sfreq,
120 const AnnotateMusclParams& params = AnnotateMusclParams());
121
122//=============================================================================================================
137 const Eigen::MatrixXd& data,
138 const FIFFLIB::FiffInfo& info,
139 double sfreq,
141
142} // namespace UTILSLIB
143#endif // ANNOTATE_ARTIFACT_DSP_H
FIFF / MNE annotations: time-tagged textual marks (BAD_*, EDGE, custom) with onset,...
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 FIFFLIB::FiffAnnotations annotateMusclZscore(const Eigen::MatrixXd &data, const FIFFLIB::FiffInfo &info, double sfreq, const AnnotateMusclParams &params=AnnotateMusclParams())
Detect muscle artifacts via high-frequency z-score and annotate bad segments.
DSPSHARED_EXPORT FIFFLIB::FiffAnnotations annotateAmplitude(const Eigen::MatrixXd &data, const FIFFLIB::FiffInfo &info, double sfreq, const AnnotateAmplitudeParams &params=AnnotateAmplitudeParams())
Annotate segments where amplitude exceeds thresholds or is too flat.
Parameters for muscle artifact annotation.
Parameters for amplitude-based annotation.
Container for FiffAnnotation entries with FIFF, JSON and CSV serializers.
Full FIFF measurement info: per-channel descriptors, sampling and filter setup, projectors,...
Definition fiff_info.h:88