v2.0.0
Loading...
Searching...
No Matches
annotate_artifact.h
Go to the documentation of this file.
1//=============================================================================================================
32
33#ifndef ANNOTATE_ARTIFACT_DSP_H
34#define ANNOTATE_ARTIFACT_DSP_H
35
36//=============================================================================================================
37// INCLUDES
38//=============================================================================================================
39
40#include "dsp_global.h"
42
43//=============================================================================================================
44// EIGEN INCLUDES
45//=============================================================================================================
46
47#include <Eigen/Core>
48
49//=============================================================================================================
50// QT INCLUDES
51//=============================================================================================================
52
53#include <QString>
54
55//=============================================================================================================
56// STL INCLUDES
57//=============================================================================================================
58
59#include <limits>
60
61//=============================================================================================================
62// FORWARD DECLARATIONS
63//=============================================================================================================
64
65namespace FIFFLIB
66{
67class FiffInfo;
68}
69
70//=============================================================================================================
71// DEFINE NAMESPACE UTILSLIB
72//=============================================================================================================
73
74namespace UTILSLIB
75{
76
77//=============================================================================================================
84{
85 double dThreshold = 4.0;
86 double dFilterLow = 110.0;
87 double dFilterHigh = 140.0;
88 double dMinLengthGood = 0.1;
89};
90
91//=============================================================================================================
98{
99 double dPeakMin = -std::numeric_limits<double>::infinity();
100 double dPeakMax = std::numeric_limits<double>::infinity();
101 double dFlatMin = 0.0;
102 double dWindowSec = 0.5;
103 double dMinDuration = 0.0;
104 QString badDescription = "BAD_amplitude";
105};
106
107//=============================================================================================================
127 const Eigen::MatrixXd& data,
128 const FIFFLIB::FiffInfo& info,
129 double sfreq,
131 Eigen::RowVectorXd* scores = nullptr);
132
133//=============================================================================================================
148 const Eigen::MatrixXd& data,
149 const FIFFLIB::FiffInfo& info,
150 double sfreq,
152
153} // namespace UTILSLIB
154#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(), Eigen::RowVectorXd *scores=nullptr)
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:90