Contacts of an sEEG / ECoG implantation and the leads they belong to.
More...
#include <ieeg_implantation.h>
Contacts of an sEEG / ECoG implantation and the leads they belong to.
Definition at line 92 of file ieeg_implantation.h.
◆ IeegImplantation() [1/2]
| IEEGLIB::IeegImplantation::IeegImplantation |
( |
| ) |
|
|
default |
◆ IeegImplantation() [2/2]
| IeegImplantation::IeegImplantation |
( |
const QVector< IeegContact > & | contacts, |
|
|
const QString & | coordinateSystem = QString() ) |
|
explicit |
Group contacts into leads.
A contact without a lead name belongs to the lead named like the contact without its trailing number (LA1, LA10 -> LA; A'1 stays apart from A1, the prime marking the other hemisphere). Within a lead, contacts are ordered by that number. A lead whose closest neighbouring contacts are less than kMaxDepthSpacing apart is a depth lead, others are strips.
- Parameters
-
Definition at line 66 of file ieeg_implantation.cpp.
◆ contacts()
| const QVector< IeegContact > & IEEGLIB::IeegImplantation::contacts |
( |
| ) |
const |
|
inline |
◆ coordinateSystem()
| QString IEEGLIB::IeegImplantation::coordinateSystem |
( |
| ) |
const |
|
inline |
- Returns
- Name of the frame of the positions, e.g. "ACPC"; empty when unknown.
Definition at line 144 of file ieeg_implantation.h.
◆ indexOf()
| int IeegImplantation::indexOf |
( |
const QString & | name | ) |
const |
◆ isEmpty()
| bool IEEGLIB::IeegImplantation::isEmpty |
( |
| ) |
const |
|
inline |
◆ isScannerRas()
| bool IeegImplantation::isScannerRas |
( |
| ) |
const |
- Returns
- True when the positions are scanner RAS of the subject's T1, which MNE-BIDS reads the BIDS iEEG systems "ACPC" and "ScanRAS" as. Such positions must be moved into the surface (tkr) RAS of the FreeSurfer surfaces before they are drawn on them.
Definition at line 215 of file ieeg_implantation.cpp.
◆ leads()
| const QVector< IeegLead > & IEEGLIB::IeegImplantation::leads |
( |
| ) |
const |
|
inline |
◆ positions()
| Eigen::MatrixX3f IeegImplantation::positions |
( |
| ) |
const |
◆ readBids()
| IeegImplantation IeegImplantation::readBids |
( |
const QString & | electrodesTsv, |
|
|
QString * | error = nullptr ) |
|
static |
Read a BIDS iEEG *_electrodes.tsv.
Units and the coordinate system come from the *_coordsystem.json in the same folder that shares the longest name prefix; without one the file is refused, since the units are then unknown. Contacts without coordinates are skipped. The group column assigns leads and the dimension column ("[4x8]") the grid shape; a type naming depth, strip or grid sets the lead type. Otherwise names and spacing decide, as in the constructor.
- Parameters
-
| [in] | electrodesTsv | Path to the *_electrodes.tsv file. |
| [out] | error | Optional: why the file was refused. |
- Returns
- The implantation; empty when the file was refused or has no placed contacts.
Definition at line 102 of file ieeg_implantation.cpp.
◆ setLeadType()
| bool IeegImplantation::setLeadType |
( |
const QString & | lead, |
|
|
IeegLeadType | type, |
|
|
int | rows = 0, |
|
|
int | cols = 0 ) |
Set a lead's type when it is declared rather than inferred.
- Parameters
-
| [in] | lead | Lead name. |
| [in] | type | Lead type. |
| [in] | rows | Grid rows, or 0 when unknown. |
| [in] | cols | Grid columns, or 0 when unknown. |
- Returns
- False when there is no such lead. A shape that does not match the contact count is dropped.
Definition at line 188 of file ieeg_implantation.cpp.
◆ transformed()
| IeegImplantation IeegImplantation::transformed |
( |
const Eigen::Matrix4f & | trans, |
|
|
const QString & | frame ) const |
- Parameters
-
| [in] | trans | Affine, in metres, from the current frame to the new one. |
| [in] | frame | Name of the new frame. |
- Returns
- A copy with every position transformed; leads are unchanged.
Definition at line 222 of file ieeg_implantation.cpp.
◆ kMaxDepthSpacing
| float IEEGLIB::IeegImplantation::kMaxDepthSpacing = 0.006f |
|
staticconstexpr |
Leads whose closest neighbouring contacts are nearer than this are depth leads.
Definition at line 96 of file ieeg_implantation.h.
The documentation for this class was generated from the following files: