Skip to main content

IeegLead

Namespace: IEEGLIB  ·  Library: iEEG Library

#include <ieeg/ieeg_implantation.h>

struct IEEGLIB::IeegLead

One lead: a depth shaft, a strip or a grid.

src/examples/ex_ieeg/main.cpp
// Contacts of one depth lead, 3.5 mm apart, in metres; the lead comes from the names
QVector<IeegContact> contacts;
for (int k : {3, 1, 2}) {
IeegContact contact;
contact.name = QStringLiteral("LA%1").arg(k);
contact.position = Eigen::Vector3f(-0.03f, 0.0f, 0.0035f * float(k - 1));
contacts.append(contact);
}
const IeegImplantation implantation(contacts, QStringLiteral("ACPC"));
const IeegLead& lead = implantation.leads().first(); // contacts ordered LA1, LA2, LA3
// IeegImplantation::readBids("sub-01_electrodes.tsv") reads the same from BIDS iEEG

Example​

Used in examples​

ex_ieeg​

IEEG library: group sEEG contacts into a lead, derive a bipolar montage and paint contact values onto a surface.

src/examples/ex_ieeg/main.cpp, line 72
const IeegImplantation implantation(contacts, QStringLiteral("ACPC"));
const IeegLead& lead = implantation.leads().first(); // contacts ordered LA1, LA2, LA3
// IeegImplantation::readBids("sub-01_electrodes.tsv") reads the same from BIDS iEEG
ok &= expect(implantation.leads().size() == 1 && lead.name == "LA" && lead.type == IeegLeadType::Depth && lead.contacts == QVector<int>({1, 2, 0}),
"IeegImplantation: one depth lead LA, ordered by contact number");

Authors of this file​