Electrode position record corresponding to one row in *_electrodes.tsv. More...
#include <bids_electrode.h>
Static Public Member Functions | |
| static QList< BidsElectrode > | readTsv (const QString &sFilePath) |
| Read a BIDS *_electrodes.tsv file. | |
| static bool | writeTsv (const QString &sFilePath, const QList< BidsElectrode > &electrodes) |
| Write a BIDS *_electrodes.tsv file. | |
| static FIFFLIB::FiffDigPointSet | toFiffDigPoints (const QList< BidsElectrode > &electrodes, const FIFFLIB::FiffCoordTrans &trans=FIFFLIB::FiffCoordTrans()) |
| Convert a list of BIDS electrodes to a FIFF digitizer point set. | |
Public Attributes | |
| QString | name |
| QString | x |
| QString | y |
| QString | z |
| QString | size |
| QString | type |
| QString | material |
| QString | impedance |
Electrode position record corresponding to one row in *_electrodes.tsv.
Definition at line 70 of file bids_electrode.h.
|
static |
Read a BIDS *_electrodes.tsv file.
| [in] | sFilePath | Path to the electrodes.tsv file. |
Definition at line 68 of file bids_electrode.cpp.
|
static |
Convert a list of BIDS electrodes to a FIFF digitizer point set.
Each electrode with valid numeric x/y/z coordinates is converted to a FiffDigPoint with kind FIFFV_POINT_EEG. Electrodes with "n/a" coordinates are skipped.
If a coordinate transform is supplied, the positions are transformed from the BIDS coordinate frame into the FIFF head frame before insertion.
| [in] | electrodes | List of BIDS electrode records. |
| [in] | trans | Optional coordinate transform (BIDS frame → head). Pass a default-constructed FiffCoordTrans to skip. |
Definition at line 129 of file bids_electrode.cpp.
|
static |
Write a BIDS *_electrodes.tsv file.
| [in] | sFilePath | Output path. |
| [in] | electrodes | List of electrode records. |
Definition at line 94 of file bids_electrode.cpp.
| QString BIDSLIB::BidsElectrode::impedance |
Impedance value or "n/a" (OPTIONAL).
Definition at line 79 of file bids_electrode.h.
| QString BIDSLIB::BidsElectrode::material |
Electrode material (OPTIONAL).
Definition at line 78 of file bids_electrode.h.
| QString BIDSLIB::BidsElectrode::name |
Electrode name (REQUIRED).
Definition at line 72 of file bids_electrode.h.
| QString BIDSLIB::BidsElectrode::size |
Electrode size in mm or "n/a" (RECOMMENDED for iEEG).
Definition at line 76 of file bids_electrode.h.
| QString BIDSLIB::BidsElectrode::type |
Electrode type: "depth", "strip", "grid" (OPTIONAL).
Definition at line 77 of file bids_electrode.h.
| QString BIDSLIB::BidsElectrode::x |
X coordinate or "n/a" (REQUIRED).
Definition at line 73 of file bids_electrode.h.
| QString BIDSLIB::BidsElectrode::y |
Y coordinate or "n/a" (REQUIRED).
Definition at line 74 of file bids_electrode.h.
| QString BIDSLIB::BidsElectrode::z |
Z coordinate or "n/a" (REQUIRED).
Definition at line 75 of file bids_electrode.h.