v2.0.0
Loading...
Searching...
No Matches
bids_edf_reader.h File Reference

BIDSLIB::AbstractFormatReader implementation for European Data Format (EDF / EDF+) files. More...

#include "bids_abstract_format_reader.h"
#include <QDateTime>
#include <QVector>
#include <QFile>
Include dependency graph for bids_edf_reader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BIDSLIB::EDFChannelInfo
 Channel-level metadata from the EDF header. More...
class  BIDSLIB::EDFReader
 The EDFReader reads European Data Format (EDF/EDF+) files and exposes them through the AbstractFormatReader interface. More...

Namespaces

namespace  BIDSLIB
 BIDS dataset reading, writing, path construction, and sidecar metadata handling for iEEG/EEG/MEG.

Detailed Description

BIDSLIB::AbstractFormatReader implementation for European Data Format (EDF / EDF+) files.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors

Author
Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org
Since
2.1.0
Date
March 2026

EDF stores a recording as a fixed-size ASCII header followed by a stream of duration_seconds-long ``data records''; inside each record the channels appear in order, with each channel contributing samples_per_record little-endian int16 samples. The header additionally lists per-channel physical / digital min / max which BIDSLIB::EDFReader uses to derive the affine calibration that converts the on-disk integers back into the channel's physical unit (volts, microvolts, degrees Celsius, …).

The reader is the BIDS counterpart of the legacy mne_edf2fiff command-line tool, refactored into a reusable library class so the same parser feeds both BIDSLIB::BidsRawData and standalone converters. The optional fScaleFactor constructor argument defaults to 1e6 so the canonical microvolt-stored EEG / iEEG channels emerge in volts, matching the MNE-CPP FIFFLIB convention.

Format reference: Kemp & Olivan, ``European data format 'plus' (EDF+)'', Clin. Neurophysiol. 114 (2003) 1755–1761; spec at https://www.edfplus.info/specs/edf.html.

Definition in file bids_edf_reader.h.