|
| Sensors () |
|
| Sensors (const Geometry &g) |
|
| Sensors (const char *filename) |
|
| Sensors (const char *filename, const Geometry &g) |
|
| Sensors (const Strings &labels, const Matrix &positions, const Matrix &orientations, const Vector &weights, const Vector &radii) |
|
| Sensors (const Strings &labels, const Matrix &positions, const Matrix &orientations, const Vector &weights, const Vector &radii, const Geometry &g) |
|
void | load (const char *filename, char filetype='t') |
|
void | load (std::istream &in) |
|
void | save (const char *filename) |
|
size_t | getNumberOfSensors () const |
|
size_t | getNumberOfPositions () const |
|
Matrix & | getPositions () |
|
Matrix | getPositions () const |
|
Matrix & | getOrientations () |
|
Matrix | getOrientations () const |
|
Strings & | getNames () |
|
Strings | getNames () const |
|
bool | hasRadii () const |
|
bool | hasOrientations () const |
|
bool | hasNames () const |
|
Vector | getPosition (size_t idx) const |
|
Vector | getOrientation (size_t idx) const |
|
std::string | getName (size_t idx) const |
|
void | setPosition (size_t idx, Vector &pos) |
|
void | setOrientation (size_t idx, Vector &orient) |
|
bool | hasSensor (std::string name) const |
|
size_t | getSensorIdx (std::string name) const |
|
Triangles | getInjectionTriangles (size_t idx) const |
|
Vector | getRadii () const |
|
Vector | getWeights () const |
|
SparseMatrix | getWeightsMatrix () const |
|
bool | isEmpty () |
|
void | info () const |
| get info about sensors. More...
|
|
Sensors class for EEG and MEG sensors. This class is made for reading sensors description file. This description file is a file text. Sensors may have names (labels) in the first column of the file (it has to contains at least one character to be considered as label) the file can have the shape of (neglecting if present the first, label column):
-
1 line per sensor and 3 columns (EEG sensors OR MEG sensors without orientation OR EIT punctual patches)
-
the 1st, 2nd and 3rd columns are respectively position coordinates x, y, z of sensor
-
1 line per sensor and 4 columns (EEG EIT patches (circular patches)) :
-
the 1st, 2nd and 3rd are respectively position coordinates x, y, z of sensor
-
the 4th is the patche radius (unit relative to the mesh)
-
1 line per sensor and 6 columns (MEG sensors) :
-
the 1st, 2nd and 3rd are respectively position coordinates x, y, z of sensor
-
the 4th, 5th and 6th are coordinates of vector orientation
-
1 line per integration point for each sensor and 7 columns (MEG sensors) :
-
the 1st, 2nd and 3rd are respectively position coordinates x, y, z of sensor
-
the 4th, 5th and 6th are coordinates of vector orientation
-
the 7th is the weight to apply for numerical integration (uses sensor name)
Definition at line 92 of file sensors.h.