ArtifactDetectEogParams
Namespace: UTILSLIB · Library: Utilities Library
#include <utils/artifact_detect.h>
struct UTILSLIB::ArtifactDetectEogParams
EOG blink / saccade detection parameters (defined outside class to avoid Clang/GCC default-argument issues with nested structs).
src/examples/ex_dsp_artifacts/main.cpp
ArtifactDetect::EcgParams ecg; // mne find_ecg_events defaults: 5-35 Hz, automatic QRS threshold
ArtifactDetect::EogParams eog; // mne find_eog_events defaults: 1-10 Hz, automatic peak threshold
const QVector<int> beats = ArtifactDetect::detectEcg(data, info, kSFreq, ecg); // R-peak samples on the ECG channel
const QVector<int> blinks = ArtifactDetect::detectEog(data, info, kSFreq, eog); // blink peaks on the EOG channel
Example
- Full source:
src/examples/ex_dsp_artifacts/main.cpp - Build target:
ex_dsp_artifacts(runs under CTest)
Authors of this file
- Christoph Dinh <christoph.dinh@mne-cpp.org>