EDFChannelInfo
Namespace: BIDSLIB · Library: BIDS Library
#include <bids/bids_edf_reader.h>
struct BIDSLIB::EDFChannelInfo
Channel-level metadata from the EDF header.
src/examples/ex_bids/main.cpp
const QVector<EDFChannelInfo> edfChannels = static_cast<EDFReader*>(edf.get())->getMeasurementChannelInfos(); // header fields per signal
Public Methods
toFiffChInfo()
toSi()
Returns:
- float — Factor from the physical dimension to SI (µV/uV 1e-6, mV 1e-3, otherwise 1; 1 for a "Status"/"Trigger" stim channel), as in mne read_raw_edf.
Example
- Full source:
src/examples/ex_bids/main.cpp - Build target:
ex_bids(runs under CTest)
Used in examples
ex_bids
BIDS library: paths, sidecar TSVs, BrainVision/EDF readers and a raw-data round trip.
src/examples/ex_bids/main.cpp, line 146
const QVector<EDFChannelInfo> edfChannels = static_cast<EDFReader*>(edf.get())->getMeasurementChannelInfos(); // header fields per signal
// mne.io.read_raw_edf: physical_max of the first two signals 175946, -217624
ok &= expect(edfChannels.size() == 25 && edfChannels[0].label == "EEG Fp1" && edfChannels[0].physicalMax == 175946.0f && edfChannels[1].physicalMax == -217624.0f && edfChannels[0].frequency == 128.0f,
QString("EDF header: %1 signals, %2 physical max %3").arg(edfChannels.size()).arg(edfChannels.value(0).label).arg(edfChannels.value(0).physicalMax));
Authors of this file
- Christoph Dinh <christoph.dinh@mne-cpp.org>