BrainVisionReader
Namespace: BIDSLIB · Library: BIDS Library · Source: bids/readers/bids_brain_vision_reader.h
#include <bids/bids_brain_vision_reader.h>
class BIDSLIB::BrainVisionReader
The BrainVisionReader reads BrainVision file triplets (.vhdr/.vmrk/.eeg) and exposes them through the AbstractFormatReader interface.
BrainVision is the most common format for iEEG (sEEG/ECoG) recordings in BIDS datasets. The format stores data as little-endian binary (INT_16, INT_32, or IEEE_FLOAT_32), either MULTIPLEXED (channels interleaved per time point) or VECTORIZED (channels contiguous).
src/examples/ex_bids/main.cpp
BrainVisionReader brainVision;
const bool bvOpen = brainVision.open(vhdr);
const MatrixXf bvHead = brainVision.readRawSegment(0, 200); // calibrated, volts
Inheritance
Public Methods
BrainVisionReader()
Default constructor.
~BrainVisionReader()
open(sFilePath)
Open and parse the file header.
Must be called before reading data.
Parameters:
- sFilePath : const QString & Absolute path to the primary data file.
Returns:
- bool — True if the file was opened and parsed successfully.
getInfo()
Return measurement metadata as FiffInfo.
Returns:
- FiffInfo — FiffInfo populated from the native format header.